Friends, I work for Ubuntu. Installed the latest Node, the latest version of Visual Studio Code. I am writing JavaScript code, but I cannot use ES6 commands - let, const, class. I get the following SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode error SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode Reinstallation does not help. On exactly the same machines from colleagues, everything works without problems. All default settings. Who faced and how to solve the problem?
|
"use strict"- Grundy