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
Remove all bourbon deprecations #7792
Remove all bourbon deprecations #7792
Conversation
maximebiloe
commented
Apr 14, 2017
Questions | Answers |
---|---|
Branch? | develop |
Description? | Switch to webpack 2 and remove all bourbon deprecations |
Type? | bug fix |
Category? | BO |
BC breaks? | no |
Deprecations? | no |
Fixed ticket? | |
How to test? |
'sprintf-js/src/sprintf.js', | ||
'./js/theme.js' | ||
], | ||
let config = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error thrown on this line:
> new-theme@1.0.0 postinstall /home/thomas/Documents/github/PrestaShop/admin-dev/themes/new-theme
> webpack --progress
/home/thomas/Documents/github/PrestaShop/admin-dev/themes/new-theme/webpack.config.js:5
let config = {
^^^
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:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at requireConfig (/home/thomas/Documents/github/PrestaShop/admin-dev/themes/new-theme/node_modules/webpack/bin/convert-argv.js:96:18)
at /home/thomas/Documents/github/PrestaShop/admin-dev/themes/new-theme/node_modules/webpack/bin/convert-argv.js:109:17
at Array.forEach (native)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding
"use strict";
at the beginning of the file fixes the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that you're using an old version of Node. It should be automatically detected, so as seen with @Shudrum no need to precise it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yolo then