Angular No module factory available for dependency type: ContextElementDependency

后端 未结 3 1293
感动是毒
感动是毒 2020-12-07 22:41

Running ng build on my Angular 4 project give this error :

     14% building modules 40/46 modules 6 active ...es\\@angular\\http\\@angular\\htt         


        
3条回答
  •  半阙折子戏
    2020-12-07 23:35

    Do npm ls webpack

    If you see two versions of webpack (under @angular/cli and the root node_modules), Then that is the problem. Delete/Rename the webpack under @angular/cli and in the .bin folder of @angular/cli.

    Problem solved for me

提交回复
热议问题