question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

See original GitHub issue

Just trying to create a new project.

keith24:~/workspace (master) $ sudo n stable
   installed : v4.6.1

keith24:~/workspace (master) $ enduro create myproject
Unhandled rejection SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/ubuntu/.nvm/versions/node/v4.6.1/lib/node_modules/enduro/libs/actions/developer_start.js:12:21)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at /home/ubuntu/.nvm/versions/node/v4.6.1/lib/node_modules/enduro/libs/linker/linker.js:74:35

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Gottwikcommented, Jun 8, 2017

Aaah, the less autoprefixer was added as devDependency. I fixed it, could you update enduro (npm i enduro -g). Should be good to go.

I also updated node dependency to 6+ so other people won’t experience the es6 error.

0reactions
Gottwikcommented, Jun 8, 2017

glad to hear it’s working for you. Let us know if you had other issues/ideas 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Block-scoped declarations not yet supported outside strict mode
I've installed all the npm dependencies with npm install command. That didn't produce any errors. In my webpack.min.js file I have: const {...
Read more >
Block-scoped declarations (let, const, function, class) not yet ...
Error “Block-scoped declarations not yet supported outside strict mode” comes while you want to do build your app. It usually comes when you...
Read more >
Block-scoped declarations (let, const, function, class) not yet ...
SyntaxError : Block-scoped declarations (let, const, function, class) not yet supported outside strict mode #245.
Read more >
Uncaught SyntaxError: Block-scoped declarations (let, const ...
The reason is let keyword is not allowed in non-strict mode for this version of Chrome. The better solution is to add "use...
Read more >
Block-scoped declarations (let, const ... - Google Groups
In the comments on the slack channel you stated you were using node.js v4.x which only supports the use of let in strict...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found