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

Module build failed: ReferenceError: Promise is not defined #98

Open
niyazialpay opened this issue Jun 10, 2016 · 1 comment
Open

Module build failed: ReferenceError: Promise is not defined #98

niyazialpay opened this issue Jun 10, 2016 · 1 comment

Comments

@niyazialpay
Copy link

When I enter the command line "npm run webpack" I give an error

[email protected] webpack /root/fb-sleep-stats
webpack --progress

Hash: 4a711a63075eff90b928
Version: webpack 1.13.1
Time: 23234ms
Asset Size Chunks Chunk Names
bundle.js 2.3 MB 0 [emitted] main
+ 353 hidden modules

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

@aleknak
Copy link

aleknak commented Jul 28, 2016

  1. rm -rf node_modules/
  2. set css-loader version to "^0.18.0" in package.json
  3. npm install
  4. npm run webpack

worked for me...

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

2 participants