0
我试图运行离子科尔多瓦建设iOS和我一致会见了以下内容:上构建IOS命令离子科尔多瓦CLI故障 - “模块没有找到,解决不了......”
Error: ./src/app/app.module.ts
Module not found: Error: Can't resolve '@ionic-native/file' in '/Users/justinfrevert/Desktop/AceAdz-App/app-copy/src/app'
resolve '@ionic-native/file' in '/Users/justinfrevert/Desktop/AceAdz-App/app-copy/src/app'
Parsed request is a module
using description file: /Users/justinfrevert/Desktop/AceAdz-App/app-copy/package.json (relative path: ./src/app)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /Users/justinfrevert/Desktop/AceAdz-App/app-copy/package.json (relative path: ./src/app)
resolve as module
looking for modules in /Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules
using description file: /Users/justinfrevert/Desktop/AceAdz-App/app-copy/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /Users/justinfrevert/Desktop/AceAdz-App/app-copy/package.json (relative path: ./node_modules)
using description file: /Users/justinfrevert/Desktop/AceAdz-App/app-copy/package.json (relative path: ./node_modules/@ionic-native/file)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/file doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/file.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/file.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/file.json doesn't exist
as directory
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/file doesn't exist
[/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/file]
[/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/file.ts]
[/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/file.js]
[/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/file.json]
[/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/file]
@ ./src/app/app.module.ts 23:0-42
@ ./src/app/main.ts,./src/app/app.module.ts
Module not found: Error: Can't resolve '@ionic-native/photo-library' in '/Users/justinfrevert/Desktop/AceAdz-App/app-copy/src/app'
resolve '@ionic-native/photo-library' in '/Users/justinfrevert/Desktop/AceAdz-App/app-copy/src/app'
Parsed request is a module
using description file: /Users/justinfrevert/Desktop/AceAdz-App/app-copy/package.json (relative path: ./src/app)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /Users/justinfrevert/Desktop/AceAdz-App/app-copy/package.json (relative path: ./src/app)
resolve as module
looking for modules in /Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules
using description file: /Users/justinfrevert/Desktop/AceAdz-App/app-copy/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /Users/justinfrevert/Desktop/AceAdz-App/app-copy/package.json (relative path: ./node_modules)
using description file: /Users/justinfrevert/Desktop/AceAdz-App/app-copy/package.json (relative path: ./node_modules/@ionic-native/photo-library)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/photo-library doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/photo-library.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/photo-library.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/photo-library.json doesn't exist
as directory
/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/photo-library doesn't exist
[/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/photo-library]
[/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/photo-library.ts]
[/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/photo-library.js]
[/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/photo-library.json]
[/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic-native/photo-library]
@ ./src/app/app.module.ts 28:0-59
@ ./src/app/main.ts
at new BuildError (/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at callback (/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/@ionic/app-scripts/dist/webpack.js:121:28)
at emitRecords.err (/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/webpack/lib/Compiler.js:269:13)
at Compiler.emitRecords (/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/webpack/lib/Compiler.js:375:38)
at emitAssets.err (/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/webpack/lib/Compiler.js:262:10)
at applyPluginsAsyncSeries1.err (/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/webpack/lib/Compiler.js:368:12)
at next (/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/tapable/lib/Tapable.js:218:11)
at Compiler.compiler.plugin (/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
at Compiler.applyPluginsAsyncSeries1 (/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/tapable/lib/Tapable.js:222:13)
at Compiler.afterEmit (/Users/justinfrevert/Desktop/AceAdz-App/app-copy/node_modules/webpack/lib/Compiler.js:365:9)
这代码更改后没有发生。这开始发生后,我想纠正一个单独的错误:编译器抱怨不正确的类型从离子本地地理位置传递到watchPosition()方法。这是一个单独的问题,也是由版本更改引起的 - 所以我试图将版本从最新恢复到3.14.0。那是什么给了上述错误。然后我恢复到了3.11.0,因为那是它在工作时的原始版本。我试图建立,但它仍然没有工作。然后我切换回最新版本,但仍然有上述错误。我尝试卸载并重新安装cordova和npm软件包进行地理定位,但仍然没有骰子。请让我知道我可以做些什么来解决这个问题。
我尝试重新添加平台并遇到此问题: 错误:找不到插件“平台”的plugin.xml。请尝试再次添加它。 我检查了插件,并没有名为“平台”的插件。我GOOGLE了这一点,并找不到任何有用的东西。我想我可能会为这个问题发一个新帖子。 –