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?

  • not yet supported outside strict mode - this message indicates that you need to add "use strict" - Grundy
  • @Grundy does not help - Daniyal Lukmanov
  • then you need to check the versions of the node and the installed packages - Grundy
  • @Grundy 9.0.0 version. Tried and others. My colleagues are all the same, but they work without errors. - Daniyal Lukmanov
  • studio code can link to the old version - Grundy

0