Type HTTPOriginal is not assignable to type Provider, ionic error after plugin installation

此生再无相见时 提交于 2019-11-29 14:52:36

You installed the latest @ionic-native/http beta (v5+)

You have to import HTTP from /ngx

import { HTTP } from '@ionic-native/http/ngx';

Otherwise fallback to @ionic-native/http v4+

This is because of Ionic Have updated all the Plugin so I suggest using the lower version of that plugin .! if your current version 4.5.0 or something then you have to downgrade it with 4.3.2 or something.

deepak ranjan

I was also getting the same error in case of @ionic-native/android-permissions.
To fix this kind of issues just downgrade the version of plugin.

Example:
@ionic-native/android-permissions@.5.0.1 to @ionic-native/android-permissions@3.4.0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!