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

后端 未结 3 1347
一整个雨季
一整个雨季 2020-12-19 06:49

After i install the cordova-plugin-advanced-http plugin, when i try to import it on providers in app.modules.ts, i get the following:

相关标签:
3条回答
  • 2020-12-19 07:19

    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

    0 讨论(0)
  • 2020-12-19 07:27

    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+

    0 讨论(0)
  • 2020-12-19 07:31

    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.

    0 讨论(0)
提交回复
热议问题