Angular: Cannot read property 'call' of undefined (when bootstrapping)

后端 未结 6 1290
长发绾君心
长发绾君心 2021-01-03 21:10

Check the update on the bottom!

I have a service that throws an error while the app is bootstrapping. Cannot read property \'call\' of undefined. I\'m u

6条回答
  •  执念已碎
    2021-01-03 22:00

    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.

提交回复
热议问题