Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错处理之 -- 关于'Http' is not assignable to parameter of type 'Http' #33

Open
deepthan opened this issue Feb 26, 2018 · 0 comments

Comments

@deepthan
Copy link
Owner

deepthan commented Feb 26, 2018

Argument of type 'Http' is not assignable to parameter of type 'Http'
或
Argument of type 'HttpClient' is not assignable to parameter of type 'Http'.   Property '_backend' is missing in type 'HttpClient'.

解决办法:下载新版本的 @angular/http和 @ngx-translate/http-loader:

npm install @angular/http@latest --save
npm install  @ngx-translate/[email protected] --save

把原来用cnpm下载的包卸载了用npm下载

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant