Skip to content
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

Merged
merged 7 commits into from Apr 18, 2017
Merged

Remove all bourbon deprecations #7792

merged 7 commits into from Apr 18, 2017

Conversation

maximebiloe
Copy link
Contributor

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 = {
Copy link
Member

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)

Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yolo then

@Quetzacoalt91 Quetzacoalt91 merged commit 55b6301 into PrestaShop:develop Apr 18, 2017
@xBorderie xBorderie added this to the 1.7.2.0 milestone Apr 18, 2017
@aleeks aleeks deleted the fix-bourbon-deprecated-bo branch April 18, 2017 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants