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

后端 未结 6 1313
长发绾君心
长发绾君心 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 21:58

    For me, this was caused by using our own client-side JavaScript to dynamically load the webpack-generated bundles. That was easily fixed in our own loader script.

    When using webpack, a regular Angular 2 index.html does not include any