Module build failed: ReferenceError: Promise is not defined

Have you run into the fol­low­ing errors while build­ing the app using webpack ?

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

Solu­tion :

  • Upgrade the node ver­sion to the lat­est sta­ble version
  • If you use nvm then you can do the fol­low­ing : nvm install 5.0
  • This should fix the mod­ule build failed error.

Ref­er­ence: Github

You may also like...