[英]Can't add any corodova plugin to my app
I am facing a problem. 我面临一个问题。 I am working on ionic 2 app mobile. 我正在使用ionic 2 app mobile。 I am trying to add cordova plugin to my mobile app. 我正在尝试将cordova插件添加到我的移动应用程序。 At the console it show me this error: 在控制台上,它显示了此错误:
[18:13:06] typescript: ...s/users/mypath/node_modules/@ionic-native/in-app-browser/index.d.ts, line: 143
Type 'any' is not a constructor function type.
L143: export declare class InAppBrowser extends IonicNativePlugin {
I tried to install another plugin and it's the same error. 我尝试安装另一个插件,并且是相同的错误。
When I create a new project and try to install same plugins, it works. 当我创建一个新项目并尝试安装相同的插件时,它可以工作。 I am not allowed to re-create a new project and copy my work. 我不允许重新创建一个新项目并复制我的作品。 How can I resolve this problem ? 我该如何解决这个问题?
我重新安装离子本机npm install @ ionic-native / core --save
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.