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

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

Community Beginner ,
Sep 17, 2023 Sep 17, 2023

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.

817
Translate
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
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.

Translate
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