【问题标题】:CDVPlugin class CordovaStripe (pluginName: CordovaStripe) does not existCDVPlugin 类 CordovaStripe (pluginName: CordovaStripe) 不存在
【发布时间】:2018-07-04 21:20:22
【问题描述】:

我正在使用 Ionic 3 和 Stripe。

我在 iOS Xcode 调试中看到此错误。

2018-07-04 16:40:49.873337-0400 TestApp[2943:7783516] CDVPlugin 类 CordovaStripe(插件名称:CordovaStripe)不存在。

2018-07-04 16:40:49.873443-0400 TestApp [2943:7783516] 错误:插件 未找到“CordovaStripe”,或者不是 CDVP 插件。检查你的插件 config.xml 中的映射。

2018-07-04 16:40:49.873527-0400 TestApp[2943:7783516] -[CDVCommandQueue executePending] [第 142 行] 失败的插件JSON = ["CordovaStripe1777748815","CordovaStripe","setPublishableKey",["pk_test_12345678900"]]

我的 config.xml

<plugin name="cordova-plugin-stripe" spec="~1.5.3" />

app.module.ts

从'@ionic-native/stripe'导入{ Stripe};

...提供者:[... Stripe ] }) 导出类 AppModule {}

> package.json    "dependencies": {   
>  "@ionic-native/stripe": "^4.9.0",
> 
>         "cordova-plugin-stripe": {}
>     },
>     "platforms": [
>         "android",
>         "ios"
>     ]

感谢任何帮助。

提前致谢

菲尔

【问题讨论】:

    标签: ionic-framework ionic3 stripe-payments


    【解决方案1】:

    我找到了答案..这很奇怪。

    • ionic cordova 平台删除 ios
    • ionic cordova 平台添加 ios
    • npm 安装
    • 退出xcode
    • 在 xcode 中重启并退出..

    现在似乎一切正常..

    谢谢 菲尔

    【讨论】:

      猜你喜欢
      • 2016-08-19
      • 2023-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-13
      相关资源
      最近更新 更多