You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
HttpClientInMemoryWebApiModule has http-backend.service dependency #215
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 to npm i it, but seems like a bug nonetheless.
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.
@angular/http API is deprecated in favor of @angular/common/http. But changing the import source to @angular/common/http won't solve it bc the API doesn't export those in @angular/http https://angular.io/api/http
Activity
SamJBarney commentedon Nov 29, 2018
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.
BStephenBB commentedon Dec 4, 2018
Just got the same error while going through the Angular docs for the first time too. Definitely confusing.
hieundx commentedon Dec 4, 2018
@angular/httpAPI is deprecated in favor of@angular/common/http. But changing the import source to@angular/common/httpwon't solve it bc the API doesn't export those in@angular/httphttps://angular.io/api/http
robsoncloud commentedon Dec 11, 2018
same here
vishal423 commentedon Dec 11, 2018
I see many duplicate issues opened for same reason. Please do note a PR is already in progress to remove this dependency #223
JudeMag commentedon Jan 22, 2019
Hey Guys, give this a try
npm install angular-in-memory-web-api --save
KostyaTretyak commentedon Jan 22, 2019
SuperITMan commentedon Jul 16, 2019
Hey everyone,
For your info the issue has been solved with version 0.8.0: https://github.com/angular/in-memory-web-api/blob/master/CHANGELOG.md#080-2018-12-06 😊