Angular 6 TypeError: Cannot read property 'call' of undefined

后端 未结 2 2044
时光说笑
时光说笑 2021-02-08 13:56

I am trying to migrate the angular app from 5 to 6 version. The app is running well but if I do some changes in my code after page reloading, I am facing a weird error:

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-08 14:46

    Issue FIXED by angular-cli team, you just need to update your "webpack": "^4.15.1" Good luck.

    This was my earlier answer.

    This is an open-label:comp: devkit/build-angular issue in angular-cli.

    Yes, you are right in the ng serve you don't see the error. Even I faced the same error while developing my application, I did end my ng serve and tried again, it worked and the ng build --prod is also successful. Please refer to the below-provided link, you will get to know more on this.

    https://github.com/angular/angular-cli/issues/11129

提交回复
热议问题