Copy link to clipboard
Copied
I just updated to Dreamweaver 2019 and now all the basic objects in JavaScript (e.g. document, window, alert, XMLHTTPRequest, etc.) are no longer defined. Lines that reference any JavaScript object have errors like, "ERROR: 'document' is not defined. [no-under]". What happened?
Thank you for downloading the latest Dreamweaver CC. Dreamweaver CC uses ESLint for linting Javascript files. To copy the default eslint configuration file(rules file) to the site, goto Site Setup Dialog->Advanced Settings->JSLint and click on Edit Configuration file to get the default .eslintrc.js file copied to the site root. In the .eslintrc.js file, add the following environment option:
"env": {
"browser": true
}
You may want to look at https://eslint.org/docs/user-guide/configuring#specifying-environments
...Copy link to clipboard
Copied
I don't use the CC version of Dw, but in the release notes for Dw 2019 I notice that Dw now supports ecma6.
A common problem with other code editors that added ecma6 support was when using jQuery, with the jQuery file linked to an external server. Are you using jQuery?
Copy link to clipboard
Copied
I also encourage you to reach out to us directly using this link Contact Customer Care The team can log a bug for you if necessary.
Copy link to clipboard
Copied
Hi,
Dreamweaver now supports ECMAScript 6 syntax in DW19.0. Dreamweaver also supports linting of ECMAScript code, with ESLint defaulting as JavaScript linter, as well. For more information, see Lint code.
Dreamweaver 19.0 is live. It can be downloaded from creative cloud Desktop application.
Please refer to release notes:
https://helpx.adobe.com/in/dreamweaver/release-note/release-notes-dreamweaver-cc-2019.htmlRelease notes for the 2019 of Dreamweaver CC
Thanks
Adobe Dreamweaver
Copy link to clipboard
Copied
Thank you for the reply Kratika, but I do not use Dw CC.
The reason I mentioned it in relation to the OP's question, was that I have come across the problem before of no dom references, etc. and it is sometimes cause by the developer not having a local copy of the jQuery file, (if they are coding in jQuery).
Copy link to clipboard
Copied
No, pziecina. I'm just using plain standard JavaScript, no libraries.
Copy link to clipboard
Copied
The team is looking at a default setting you may have to modify to get things going. Stay tuned to this thread.
Copy link to clipboard
Copied
Is there actually even a Dreamweaver team anymore?
Copy link to clipboard
Copied
Thank you for downloading the latest version and providing you with your observations. Let me check with the team and get back to you.
Thanks,
Preran
Copy link to clipboard
Copied
Uninstall Dreamweaver 19 and use prior version. If JavaScript authoring is your thing, consider a proper authoring tool, such as Visual Studio. The Dreamweaver programming team has some serious issues to resolve before I would even consider the latest and greatest (really, Preran? Do you really believe that. If so, there is a bridge in New York I'd like to sell you) versions. Refuse updates ntil you have reviewed the impact.
This reminds me of how you decided to install Microsoft updates... in the last century.
Listen to Adobe if you wish. But forewarned is forearmed.
Copy link to clipboard
Copied
Thank you for downloading the latest Dreamweaver CC. Dreamweaver CC uses ESLint for linting Javascript files. To copy the default eslint configuration file(rules file) to the site, goto Site Setup Dialog->Advanced Settings->JSLint and click on Edit Configuration file to get the default .eslintrc.js file copied to the site root. In the .eslintrc.js file, add the following environment option:
"env": {
"browser": true
}
You may want to look at https://eslint.org/docs/user-guide/configuring#specifying-environments for defining other environments for the site if needed. If your site already has any of the eslint configuration files [https://eslint.org/docs/user-guide/configuring#configuration-file-formats ], add the above environment to the configuration file.
Thanks,
Adobe Dreamweaver Team
Copy link to clipboard
Copied
Hi,
I am probably a stupid donkey, but I still don't know how to get read of the JS errors that have appeared with DW 2019 (and were totally absent from the former version).
As proposed in the answer, I have checked the JSLint and it seems in accordance with your recommendation (see first screenshot).
Nevertheless, I have a tremendous set of stupid errors, with unrecognized keywords (see second screenshot).
So, I really need simple and efficient help!
Thank you
Pascal Garin
Copy link to clipboard
Copied
Hi All,
We have prepared a Kb article which mentions the workaround for this issue.
Please refer to JavaScript objects are undefined in Dreamweaver 19.0
Thanks
Dreamweaver Team
Copy link to clipboard
Copied
Hi Kratika,
Unfortunately, the zip-folder available at "Workaround 2" is empty.
Edit: Not the zip-folder itself is empty, but it contains an empty folder.
I tried two different Macs. See the unzipped folder here:
Copy link to clipboard
Copied
Hi, the solution provided by the adobe team does not work for me either. Do you have another solution or tip to remedy the problem. It's really complicated to work with this software that displays errors repeatedly!
Copy link to clipboard
Copied
Hi All,
we have fixed this below issue in our latest release 19.0.1 which can be downloaded from Creative cloud.
Please give a try and let us know if your issue is resolved.
Thanks
Kratika
Dreamweaver Team