• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

Re: JavaScript variables don't work for me. The keyword 'const' /'let are reserved. Solution

Community Beginner ,
Sep 17, 2023 Sep 17, 2023

Copy link to clipboard

Copied

For some reason the thread with the above problem of, "how to resolve  js linting issues, concerning errors appearing as errors, when they are not actually errors" was closed - so much for open discussion.

I'm not wanting to reignite the topic of Dreamweaver's dated failings, I just want to offer a solution to the original problem, which resolved it for me.

After exhaustive research - I can't stand to see red on my javaScript document, so ignoring the bug was not a solution - I found a solution on Stackoverflow which says insert, to the top of Dreamweaver's linting document,

{

    "parserOptions": {

        "ecmaVersion": "latest",

    },

 

    "env": {

        "es6": true

    }

}

https://stackoverflow.com/questions/42706584/eslint-error-parsing-error-the-keyword-const-is-reserve...

 

It worked for me.

regards.

Views

425

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 18, 2023 Sep 18, 2023

Copy link to clipboard

Copied

LATEST

I've unlocked the other thread and added your solution.

Hopefully it will help out other users who are struggling with DW's default Linting limitations.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines