npm start does not work in angular 5 anymore [dupl

2019-07-23 15:24发布

问题:

This question already has an answer here:

  • Angular CLI gives me “TypeError: callbacks[i] is not a function” when I “ng serve” 12 answers

I'm trying to run npm start for angular 5 and I get the following error

TypeError: callbacks[i] is not a function

Does anyone know where this comes from? It just appeared out of nowhere... There seems nothing to be wrong with my project (code)

回答1:

Temporary fix:

Rollback the bugged dependency.

npm install copy-webpack-plugin@4.3.0

More info here https://github.com/angular/angular-cli/issues/9550