Hi,
I have or had a working Ionic Angular PWA.
On the last build the fillowing error started to come up:
ionic build
> ng.cmd run app:build
ERROR in Failed to list lazy routes: Unknown module 'E:/Erez/Projects/BLSProtocols_B/src/app/app.module#AppModule'.
[ERROR] An error occurred while running subprocess ng.
ng.cmd run app:build exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
I cant understand what the problem is, it used to compile perfectlly.
Any insites ?
Thanks
ionic build --verbose
ionic:lib Terminal info: { ci: false, shell: 'C:\\WINDOWS\\system32\\cmd.exe', tty: true, windows: true } +0ms
ionic:lib CLI global options: { _: [ 'build' ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, project: null, '--': [] } +3ms
ionic:lib:project Project type from config: @ionic/angular (angular) +0ms
ionic:lib:project Project details: { configPath: 'E:\\Erez\\Projects\\BLSProtocols_B\\ionic.config.json', errors: [], context: 'app', type: 'angular' } +1ms
ionic Context: { binPath: 'C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\@ionic\\cli\\bin\\ionic', libPath: 'C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\@ionic\\cli', execPath: 'E:\\Erez\\Projects\\BLSProtocols_B', version: '6.3.0' } +0ms
ionic:lib:build build options: {
ionic:lib:build '--': [],
ionic:lib:build engine: 'browser',
ionic:lib:build platform: undefined,
ionic:lib:build project: 'app',
ionic:lib:build verbose: true,
ionic:lib:build configuration: undefined,
ionic:lib:build sourcemaps: undefined,
ionic:lib:build cordovaAssets: true,
ionic:lib:build watch: undefined,
ionic:lib:build type: 'angular'
ionic:lib:build } +0ms
ionic:lib:telemetry Sending telemetry for command: 'ionic build' [ '--verbose', '--interactive', '--color' ] +0ms
ionic:lib:hooks Looking for ionic:build:before npm script. +0ms
ionic:lib:build Looking for ionic:build npm script. +27ms
> ng.cmd run app:build --verbose
ng:analytics getGlobalAnalytics +0ms
ng:analytics Client Analytics config found: false +39ms
ng:analytics Analytics disabled. Ignoring all analytics. +1ms
ng:analytics getSharedAnalytics +0ms
<w> [webpack.Progress] 3093ms building
<i> [webpack.Progress] 16ms advanced chunk optimization
<i> [webpack.Progress] 16ms hashing
<i> [webpack.Progress] 23ms chunk assets processing
<i> [webpack.Progress] 227ms after chunk asset optimization
ERROR in Failed to list lazy routes: Unknown module 'E:/Erez/Projects/BLSProtocols_B/src/app/app.module#AppModule'.
[ERROR] An error occurred while running subprocess ng.
ng.cmd run app:build --verbose exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
ionic:utils-process onBeforeExit handler: 'process.exit' received +0ms
ionic:utils-process onBeforeExit handler: running 1 functions +1ms
ionic:utils-process error while killing process tree for 8308: Error: Command failed: taskkill /pid 8308 /T /F
ionic:utils-process ERROR: The process "8308" not found.
ionic:utils-process
ionic:utils-process at ChildProcess.exithandler (child_process.js:303:12)
ionic:utils-process at ChildProcess.emit (events.js:311:20)
ionic:utils-process at maybeClose (internal/child_process.js:1021:16)
ionic:utils-process at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) {
ionic:utils-process killed: false,
ionic:utils-process code: 128,
ionic:utils-process signal: null,
ionic:utils-process cmd: 'taskkill /pid 8308 /T /F'
ionic:utils-process } +414ms
ionic:utils-process onBeforeExit handler: error from function: Error: Command failed: taskkill /pid 8308 /T /F
ionic:utils-process ERROR: The process "8308" not found.
ionic:utils-process
ionic:utils-process at ChildProcess.exithandler (child_process.js:303:12)
ionic:utils-process at ChildProcess.emit (events.js:311:20)
ionic:utils-process at maybeClose (internal/child_process.js:1021:16)
ionic:utils-process at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) {
ionic:utils-process killed: false,
ionic:utils-process code: 128,
ionic:utils-process signal: null,
ionic:utils-process cmd: 'taskkill /pid 8308 /T /F'
ionic:utils-process } +16ms
ionic:utils-process processExit: exiting (exit code: 1) +9ms
Ionic:
Ionic CLI : 6.3.0 (C:\Users\user\AppData\Roaming\npm\node_modules\@ionic\cli)
Ionic Framework : @ionic/angular 5.0.7
@angular-devkit/build-angular : 0.803.25
@angular-devkit/schematics : 9.1.0
@angular/cli : 9.1.0
@ionic/angular-toolkit : 2.2.0
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v12.16.1 (C:\Program Files\nodejs\node.exe)
npm : 6.13.4
OS : Windows 10