Angular tutorial, InMemoryWebApiModule throwing 500 internal server error with angular-in-memory-web-api 0.6.0
问题 InMemoryWebApiModule is working with downloaded source code where "angular-in-memory-web-api": "~0.5.0" But not with "angular-in-memory-web-api": "^0.6.0" I have followed the tutorial,to install angular-in-memory-web-api : npm install angular-in-memory-web-api --save And it installed "angular-in-memory-web-api": "^0.6.0" Error Message: webpack-internal:///./src/app/hero.service.ts:87 Object body: error: "Object(...) is not a function" __proto__: Object headers: HttpHeaders lazyInit: ƒ ()