If you use webpack as follows:
webpack ./js/entry.js ./js/bundle.js
you might encounter the following error:
ERROR in /Users/izeye/~/css-loader!./css/style.css
Module build failed: ReferenceError: Promise is not defined
at LazyResult.async (/Users/izeye/node_modules/css-loader/node_modules/postcss/lib/lazy-result.js:237:31)
at LazyResult.then (/Users/izeye/node_modules/css-loader/node_modules/postcss/lib/lazy-result.js:141:21)
at processCss (/Users/izeye/node_modules/css-loader/lib/processCss.js:199:5)
at Object.module.exports (/Users/izeye/node_modules/css-loader/lib/loader.js:24:2)
@ /Users/izeye/~/style-loader!/Users/izeye/~/css-loader!./css/style.css 4:14-91
Upgrade your Node.js to the latest version.
Reference:
https://github.com/webpack/css-loader/issues/145
No comments:
Post a Comment