-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
workbox-webpack-plugin has issues with node version 5 (v5.7.0) #950
Comments
Thanks for raising the issue. We need to find a way to run the node modules on older versions of Node to avoid this issue in the future, |
The approach in v3 is to run things through We didn't backport that transpilation to v2. |
@pskanawat If this is blocking your work, we can publish another release in the v2 branch that manually adds the Alternatively, if you could update from Node 5 to a more recent version, that would address it sooner. (And as mentioned, this will stop being an issue with our v3 releases of Workbox in general.) |
@jeffposnick Surely, I would like to move to the recent version of Node but that is going to take its own sweet time. It would be great if you can publish another release with following fixes
|
Okay, we should be able to get that out in a v2 patch release on Thursday. |
The updated |
Library Affected:
workbox-webpack-plugin
Browser & Platform:
node v5.7.0
Issue or Feature Request Description:
Due to missing
use script
in webpack plugin, it fails in node v5.Console logs
`class WorkboxBuildWebpackPlugin {
^^^^^
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:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (/Users/puran.kanawat/dev/sp-seller-dashboard/client/webpack.config.js:13:23)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)`
`const {publicPath} = compilation.options.output;
^
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (/Users/puran.kanawat/dev/sp-seller-dashboard/client/webpack.config.js:13:23)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)`
The text was updated successfully, but these errors were encountered: