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
ERROR in ./node_modules/@angular/material/@angular/material.es5.js
Module not found: Error: Can't resolve '@angular/http' in '.\node_modules\@angular\material\@angular'
What is the use-case or motivation for changing an existing behavior?
first of all, none of your components need http, so you shouldn't depend on it
secondly, since version 4.3 of angular, they introduces httpClientModule under @angular/common/http. it's a rewrite of the httpModule of @angular/http with more features (like interceptors, native json parsing, typed response) and easier mocking
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular 4.3+ if you want to replace http with httpclient. any angular version if you just wanna remove the dependency
Is there anything else we should know?
this stack overflow answer explain the difference between httpModule and httpClientModule in more details
The text was updated successfully, but these errors were encountered:
Bug, feature request, or proposal:
remove dependency to
@angular/http
from the package.json fileWhat is the expected behavior?
no dependency to
@angular/http
What is the current behavior?
has a dependency to
@angular/http
What are the steps to reproduce?
make sure your angular version is over 4.3
follow your getting started guide for using your lib
see this error when trying to build
What is the use-case or motivation for changing an existing behavior?
first of all, none of your components need http, so you shouldn't depend on it
secondly, since version 4.3 of angular, they introduces httpClientModule under
@angular/common/http
. it's a rewrite of the httpModule of@angular/http
with more features (like interceptors, native json parsing, typed response) and easier mockingWhich versions of Angular, Material, OS, TypeScript, browsers are affected?
angular 4.3+ if you want to replace http with httpclient. any angular version if you just wanna remove the dependency
Is there anything else we should know?
this stack overflow answer explain the difference between httpModule and httpClientModule in more details
The text was updated successfully, but these errors were encountered: