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

后端 未结 2 2047
时光说笑
时光说笑 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:38

    I think it happens when you make changes to module imports during run time.

    Run the application again using ng serve and it fixed the issue for me.

    It may also occur when you try to use components of lazy loaded modules in other modules before the lazy module getting loaded or such similar scenarios.

提交回复
热议问题