Module build failed: ReferenceError: Promise is not defined

Have you run into the following errors while building the app using webpack ?

ERROR in ./~/css-loader!./src/styles/app.css  
Module build failed: ReferenceError: Promise is not defined

Solution :

  • Upgrade the node version to the latest stable version
  • If you use nvm then you can do the following : nvm install 5.0
  • This should fix the module build failed error.

Reference: Github

You may also like...