Skip to main content
Inspiring
October 15, 2018
解決済み

dw 2019 javascript dom undefined

  • October 15, 2018
  • 返信数 7.
  • 3678 ビュー

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?

このトピックへの返信は締め切られました。
解決に役立った回答 narayanim11554375

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

返信数 7

Participating Frequently
February 5, 2019

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

sc-conception
Participant
January 29, 2019

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!

Participating Frequently
October 24, 2018

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

bartl
Participating Frequently
December 4, 2018

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:

Adobe Employee
October 16, 2018

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

Pascal Garin
Inspiring
November 24, 2018

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

ALsp
Legend
October 15, 2018

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.

Preran
Legend
October 15, 2018

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

pziecina
Legend
October 15, 2018

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?

Preran
Legend
October 15, 2018

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.