-
-
Notifications
You must be signed in to change notification settings - Fork 604
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 #145
Comments
Duplicate of #144. |
same |
+1 |
1 similar comment
+1 |
Is there any quick workaround? |
@Strate I got it to work by downgrading css-loader to "^0.18.0" |
+1 |
+1, @nazywamsiepawel, same. Seems to be exclusive to 0.19.0 |
+1 @nazywamsiepawel . Your workaround works. |
As per suggestion in webpack-contrib/css-loader#145 Change-Id: I45abfa4236f169277156cb4b453106c10e5bf407
@nazywamsiepawel thnx, that did the trick |
I fixed problem by switching to node version 0.12.7 I guess 0.19.0 uses a dependency that breaks on node 0.10? It's a bit frustrating as my older projects can't use 0.12 so I'll have to switch back to 0.10 when I switch projects. |
Webpack build was failed because of webpack-contrib/css-loader#145
Had the same problem. Realized I had Node v0.10.26 (gosh!) installed. Upgraded to latest stable version (v4.2.1) and the problem was fixed. |
Thanks @andre-gh .. Works !! |
I upgraded my node to v0.12.7 and it worked. |
@andre-gh thanks - the workaround works perfectly! |
@andre-gh thank you for saving my day |
I'm getting this on node v5.3.0 |
@andre-gh Thanks man! |
I got this problem on node: '0.10.40'. |
Had the same problem. Realized I had Node v0.10.29 (gosh!) installed |
I'am I did downgrade of nodejs 0.10 to v5.3.0 on ubuntu: sudo apt-get remove nodejs Install nodeJS v5.3.0: |
I can't upgrade,Too many project dependencies |
@nazywamsiepawel thank you |
@yanhaijing I believe in you! Don't let your dreams be dreams!! |
@philihp thank you |
Thanks @nazywamsiepawel - am in the same boat as others where I can't upgrade. |
Upgrading to node 0.12.x works too, in case you can't make the leap to 4. |
Downgrading css-loader worked. |
Because of: webpack-contrib/css-loader#145 and nodesource/distributions#73 so that the build works also in va vmware Jenkins
Because of: webpack-contrib/css-loader#145 and nodesource/distributions#73 so that the build works also in va vmware Jenkins
Thanks guys, I'm had the same problem. Upgrading to Node v6.2.2 works perfectly !! |
// first line of webpack.config.js
global.Promise = require('bluebird') if you already have |
The same problem here, with Workaround suggested by @andre-gh
works for me too |
@fhurta Same for me. |
Modify output directory to build, use ExtractTextPlugin's latest example of consumption of css files. Polyfill is not needed for the css-loader, because we are not throwing the Promise not defined Error from webpack-contrib/css-loader#145
Modify output directory to build, use ExtractTextPlugin's latest example of consumption of css files. Polyfill is not needed for the css-loader, because we are not throwing the Promise not defined Error from webpack-contrib/css-loader#145
You can use Promise: 'es6-promise' in your webpack config:
https://stackoverflow.com/questions/35769777/axios-ie-promise-doesnt-work/48203092#48203092 I had this in Android 4.x browsers and about using axios And Promise there. |
Hi all,
I try to update some of my npm packages, and then I'm having this issues.
And the following is my package.json
And this is my webpack config for the scss
Anyone have idea and much appreciated, thanks.
The text was updated successfully, but these errors were encountered: