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

npm run build-minified error #1

Closed
SevenBlocks opened this issue Feb 22, 2016 · 4 comments
Closed

npm run build-minified error #1

SevenBlocks opened this issue Feb 22, 2016 · 4 comments

Comments

@SevenBlocks
Copy link

"npm run build-minified" gives the error:

ERROR in .//css-loader!.//less-loader!./src/browser/components/main.less
Module build failed: ReferenceError: Promise is not defined
at LazyResult.async (.../fb-sleep-stats/node_modules/css-loader/node_modules/postcss/lib/lazy-result.js:157:31)
at LazyResult.then (.../fb-sleep-stats/node_modules/css-loader/node_modules/postcss/lib/lazy-result.js:79:21)
at processCss (.../fb-sleep-stats/node_modules/css-loader/lib/processCss.js:198:5)
at Object.module.exports (.../fb-sleep-stats/node_modules/css-loader/lib/loader.js:24:2)
@ ./src/browser/components/main.less 4:14-127

@whizzzkid
Copy link

Got the same

@whizzzkid
Copy link

The issue is with the node version. Requires version 4

webpack-contrib/css-loader#145

@SevenBlocks
Copy link
Author

Good catch. Upgrading to version 4 worked for me.

@sorenlouv
Copy link
Owner

Yes, Node 4 is required. Glad you got it fixed. Will update the readme to point this out.

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

No branches or pull requests

3 participants