Skip to main content
March 29, 2017
Answered

Weird syntax errors in dreamweaver

  • March 29, 2017
  • 2 replies
  • 678 views

Hello,

I am receiving a strange syntax error writing JavaScript in Dreamweaver CS6 (version 12).

for (let i of this.roomItems) {

  }

for some reason it is saying line 1 is a syntax error, but this doesn't seem right. I think perhaps the syntax definitions maybe out of date, but I can't figure out how to update it for the more modern JavaScript code.

I really like Dreamweaver, but I'm about ready to switch to a different software if I can't resolve this, so please let me know how get Dreamweaver to understand things like "let" and "of".

thanks!

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer pziecina

If you are going to use ecma 6 to any degree, only programs produced within the last 12-18 months are likely to offer good support.

It may be worth looking at supplementing CS6, with an open source editor such as Brackets or Visual Studio code, (vs code includes a js debugger, and has an extension for the Chrome browsers dev. tools), before deciding to update to the new version of Dw, (which does not include a debugger and the dev tools).

2 replies

pziecina
pziecinaCorrect answer
Legend
March 29, 2017

If you are going to use ecma 6 to any degree, only programs produced within the last 12-18 months are likely to offer good support.

It may be worth looking at supplementing CS6, with an open source editor such as Brackets or Visual Studio code, (vs code includes a js debugger, and has an extension for the Chrome browsers dev. tools), before deciding to update to the new version of Dw, (which does not include a debugger and the dev tools).

Rob Hecker2
Legend
March 29, 2017

DW CC2017 does not produce a syntax error for javascript let, so one solution would be to upgrade.

Otherwise, knowing your code is correct you can simply ignore the syntax errors.