-
Notifications
You must be signed in to change notification settings - Fork 230
HttpClientInMemoryWebApiModule has http-backend.service dependency #215
Comments
I am running on Angular 7, and am having the same problem. It seems like a small problem that a lot of new Angular people run into, and so if you're gonna keep the backwards compatibility, you should at least update the docs to explain to people how to resolve the issue. |
Just got the same error while going through the Angular docs for the first time too. Definitely confusing. |
|
same here |
Doing an Angular 7 project and I too am facing this issue. |
I see many duplicate issues opened for same reason. Please do note a PR is already in progress to remove this dependency #223 |
Hey Guys, give this a try |
npm r angular-in-memory-web-api
npm i -D angular-in-memory-web-api |
Hey everyone, |
Hi, I've just tried using this module for the first time and ran into this issue:
Version: 0.6.1
Angular Version: 6
When trying to build, I receive this Typescript error, failing the build:
ERROR in node_modules/angular-in-memory-web-api/http-backend.service.d.ts(2,75): error TS2307: Cannot find module '@angular/http'
App module (cut down for brevity):
MockApiService:
As far as I can tell, if one is using the HttpClientInMemoryWebApiModule, there should be no dependencies on
@angular/http
. It's a simple fix tonpm i
it, but seems like a bug nonetheless.The text was updated successfully, but these errors were encountered: