gpt4 book ai didi

cordova - 模块没有导出成员 'IonicNativePlugin' , Ionic2

转载 作者:行者123 更新时间:2023-12-04 17:16:14 25 4
gpt4 key购买 nike

我正在尝试让相机、文件、文件路径和传输插件正常工作,但每个都收到此错误,

Module 'node_modules/@ionic-native/core/index' has no exported member 'IonicNativePlugin'

我得到了最新的 Ionic2 版本。

package.json 文件按要求
"dependencies": {
"@angular/common": "4.0.0",
"@angular/compiler": "4.0.0",
"@angular/compiler-cli": "4.0.0",
"@angular/core": "4.0.0",
"@angular/forms": "4.0.0",
"@angular/http": "4.0.0",
"@angular/platform-browser": "4.0.0",
"@angular/platform-browser-dynamic": "4.0.0",
"@ionic-native/camera": "^3.6.0",
"@ionic-native/core": "3.4.2",
"@ionic-native/file": "^3.6.0",
"@ionic-native/file-path": "^3.6.0",
"@ionic-native/splash-screen": "3.4.2",
"@ionic-native/status-bar": "3.4.2",
"@ionic-native/transfer": "^3.6.0",
"@ionic/storage": "2.0.1",
"crypto-js": "3.1.9-1",
"fast-sha256": "1.0.0",
"ionic-angular": "3.0.1",
"ionic-native": "^3.5.0",
"ionicons": "3.0.0",
"rxjs": "5.1.1",
"sha256": "0.2.0",
"sw-toolbox": "3.4.0",
"ts-md5": "1.2.0",
"zone.js": "^0.8.4"

devDependencies": {
"@ionic/app-scripts": "1.3.0",
"typescript": "~2.2.1"

"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-console",
"cordova-plugin-statusbar",
"cordova-plugin-device",
"ionic-plugin-keyboard",
"cordova-plugin-splashscreen"

"cordovaPlatforms": [],
"description": "Work: An Ionic project"

我错过了什么吗?

最佳答案

试试这个:

npm uninstall --save @ionic-native/core
npm install --save @ionic-native/core@latest

关于cordova - 模块没有导出成员 'IonicNativePlugin' , Ionic2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43650747/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com