登山则情满于山,观海则意溢于海。这篇文章主要讲述Ionic app,错误:..main.ts模块构建失败:错误:ENOENT相关的知识,希望能为你提供帮助。
【Ionic app,错误(..main.ts模块构建失败:错误:ENOENT)】在这里,我有使用Firebase和Google集成的Ionic v4应用程序
离子信息显示:
Ionic:
ionic (Ionic CLI): 4.12.0 (C:UsersxxxAppDataRoaming
vmv10.15.3
ode_modulesionic)
Ionic Framework: ionic-angular 3.9.3
@ionic/app-scripts : 3.2.3Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms: android 7.1.4
Cordova Plugins: cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 22 other plugins)System:
NodeJS : v10.15.3 (C:Program Files
odejs
ode.exe)
npm: 6.4.1
OS: Windows 10
Main.ts包含这个
{platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {AppModule} from './app.module';
platformBrowserDynamic().bootstrapModule(AppModule);
运行后出现问题:
ionic build android
[15:54:08]ionic-app-script task: "build"
[15:54:08]Error: C:/PATH/Ionic/src/app/main.ts Module build failed: Error: ENOENT: no
such file or directory, open 'C:PATHIonicsrcappmain.js'
Error: C:/Users/Jasko/Dropbox/Projects/Real.Me/Ionic/src/app/main.ts
Module build failed: Error: ENOENT: no such file or directory, open 'C:PATHIonicsrcappmain.js'
at new BuildError (C:PATHIonic
ode_modules@ionicapp-scriptsdistutilerrors.js:16:28)
at callback (C:PATHIonic
ode_modules@ionicapp-scriptsdistwebpack.js:121:28)
at emitRecords.err (C:PATHIonic
ode_moduleswebpacklibCompiler.js:265:13)
at Compiler.emitRecords (C:PATHIonic
ode_moduleswebpacklibCompiler.js:371:38)
at emitAssets.err (C:PATHIonic
ode_moduleswebpacklibCompiler.js:258:10)
at applyPluginsAsyncSeries1.err (C:PATHIonic
ode_moduleswebpacklibCompiler.js:364:12)
at next (C:PATHIonic
ode_modules apablelibTapable.js:218:11)
at Compiler.compiler.plugin (C:PATHIonic
ode_moduleswebpacklibperformanceSizeLimitsPlugin.js:99:4)
at Compiler.applyPluginsAsyncSeries1 (C:PATHIonic
ode_modules apablelibTapable.js:222:13)
at Compiler.afterEmit (C:PATHIonic
ode_moduleswebpacklibCompiler.js:361:9)
[ERROR] An error occurred while running subprocess ionic-app-scripts.
谁知道在哪里寻找错误?
答案该问题是由Windows Symlink文件夹引起的。一旦我将源代码移动到另一个驱动器,它就成功运行了。绝对是一个离子BUG
推荐阅读
- 将OneSignal插件添加到Ionic App后生成APK时出错
- 从Android访问Windows WebService获取IP地址
- 本文教你u盘不显示怎样办
- 本文教你华硕主板bios设置图解
- 图文详细说明win7系统U盘插入后假死怎样处理
- 图文详细说明u盘不能格式化怎样办
- 图文详细说明u盘中毒怎样办
- 图文详细说明u盘坏了怎样修好
- u盘运用过程中发热是否属于正常现象?图文详回答案