@Vigors wrote:
Hi,
My application suddenly can’t run a ng serve or ionic cordova build android anymore.
First some config was emptied, possibly by visual studio code, so I ran the command
as per this discussion:
ionic integrations enable cordova --addNow when I run ng serve --verbose I get this:
ERROR in ./node_modules/@ionic/core/dist/esm/legacy/index.mjs 3:0-202
Can’t reexport the named export ‘t’ from non EcmaScript module (only default export is available)
at HarmonyExportImportedSpecifierDependency._getErrors (C:\websites\weight-recording-app-4\node_modules\webpack\lib\dependencies\HarmonyExportImportedSpecifierDependency.js:360:6)
at HarmonyExportImportedSpecifierDependency.getErrors (C:\websites\weight-recording-app-4\node_modules\webpack\lib\dependencies\HarmonyExportImportedSpecifierDependency.js:338:16)
at Compilation.reportDependencyErrorsAndWarnings (C:\websites\weight-recording-app-4\node_modules\webpack\lib\Compilation.js:1365:22)
at Compilation.finish (C:\websites\weight-recording-app-4\node_modules\webpack\lib\Compilation.js:1167:9)
at hooks.make.callAsync.err (C:\websites\weight-recording-app-4\node_modules\webpack\lib\Compiler.js:622:17)
at _done (eval at create (C:\websites\weight-recording-app-4\node_modules\tapable\lib\HookCodeFactory.js:33:10), :9:1)
at _err4 (eval at create (C:\websites\weight-recording-app-4\node_modules\tapable\lib\HookCodeFactory.js:33:10), :72:22)
at _addModuleChain (C:\websites\weight-recording-app-4\node_modules\webpack\lib\Compilation.js:1095:12)
at processModuleDependencies.err (C:\websites\weight-recording-app-4\node_modules\webpack\lib\Compilation.js:1007:9) at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
@ ./node_modules/@ionic/core/dist/index.mjs
@ ./node_modules/@ionic/angular/dist/fesm5.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi (webpack)-dev-server/client?http://0.0.0.0:0/sockjs-node ./src/main.ts
ERROR in ./node_modules/@ionic/core/loader/index.mjs 21:0-47
Can’t reexport the namespace object from non EcmaScript module (only default export is available)
at HarmonyExportImportedSpecifierDependency._getErrors (C:\websites\weight-recording-app-4\node_modules\webpack\lib\dependencies\HarmonyExportImportedSpecifierDependency.js:360:6)
at HarmonyExportImportedSpecifierDependency.getErrors (C:\websites\weight-recording-app-4\node_modules\webpack\lib\dependencies\HarmonyExportImportedSpecifierDependency.js:338:16)
at Compilation.reportDependencyErrorsAndWarnings (C:\websites\weight-recording-app-4\node_modules\webpack\lib\Compilation.js:1365:22)
at Compilation.finish (C:\websites\weight-recording-app-4\node_modules\webpack\lib\Compilation.js:1167:9)
at hooks.make.callAsync.err (C:\websites\weight-recording-app-4\node_modules\webpack\lib\Compiler.js:622:17)
at _done (eval at create (C:\websites\weight-recording-app-4\node_modules\tapable\lib\HookCodeFactory.js:33:10), :9:1)
at _err4 (eval at create (C:\websites\weight-recording-app-4\node_modules\tapable\lib\HookCodeFactory.js:33:10), :72:22)
at _addModuleChain (C:\websites\weight-recording-app-4\node_modules\webpack\lib\Compilation.js:1095:12)
at processModuleDependencies.err (C:\websites\weight-recording-app-4\node_modules\webpack\lib\Compilation.js:1007:9) at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
@ ./node_modules/@ionic/angular/dist/fesm5.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi (webpack)-dev-server/client?http://0.0.0.0:0/sockjs-node ./src/main.ts
ERROR in ./node_modules/@ionic/core/dist/esm/polyfills/index.js 15:18
Module parse failed: Unexpected token (15:18)
You may need an appropriate loader to handle this file type.
|
| if (!win.customElements || (win.Element && (!win.Element.prototype.closest || !win.Element.prototype.matches || !win.Element.prototype.remove))) {promises.push(import('./dom.js'));
| }
|
@ ./node_modules/@ionic/core/loader/index.mjs 21:0-47 21:0-47
@ ./node_modules/@ionic/angular/dist/fesm5.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi (webpack)-dev-server/client?http://0.0.0.0:0/sockjs-node ./src/main.ts
ERROR in ./node_modules/@ionic/core/dist/esm/legacy/chunk-d83bfeae.js 172:37
Module parse failed: Unexpected token (172:37)
You may need an appropriate loader to handle this file type.
| baseEl.classList.remove(‘overlay-hidden’);
| aniRoot = baseEl.shadowRoot || overlay.el;return [4 /*yield*/, import('./index-d9adb105.js').then(function (mod) { return mod.create(animationBuilder, aniRoot, opts); })];
| case 1:
| animation = _a.sent();
@ ./node_modules/@ionic/core/dist/esm/legacy/index.mjs 3:0-202 3:0-202 3:0-202 3:0-202 3:0-202 3:0-202 3:0-202 3:0-202
@ ./node_modules/@ionic/core/dist/index.mjs
@ ./node_modules/@ionic/angular/dist/fesm5.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi (webpack)-dev-server/client?http://0.0.0.0:0/sockjs-node ./src/main.ts
ERROR in ./node_modules/@ionic/core/dist/esm/legacy/chunk-09ec7fc0.js 61:11
Module parse failed: Unexpected token (61:11)
You may need an appropriate loader to handle this file type.
| return module[exportName];
| }return import(
| /* webpackInclude: /.entry.js$/ /
| / webpackExclude: /.system.entry.js$/ */
@ ./node_modules/@ionic/core/dist/esm/legacy/loader.mjs 1:0-86 4:11-19 5:8-15 6:8-21
@ ./node_modules/@ionic/core/loader/index.mjs
@ ./node_modules/@ionic/angular/dist/fesm5.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi (webpack)-dev-server/client?http://0.0.0.0:0/sockjs-node ./src/main.ts
i 「wdm」: Failed to compile.There are more logs that this, but that should give you an idea of what I am seeing.
Removing node_modules and running npm i didn’t help.
Running ionic repair didn’t help.Ionic Info:
Ionic:Ionic CLI : 5.2.3
Ionic Framework : @ionic/angular 4.6.2
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1Cordova:
Cordova CLI : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : not available
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 8 other plugins)Utility:
cordova-res : 0.3.0
native-run : 0.2.6System:
NodeJS : v8.11.1 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10Can anyone help?
Posts: 1
Participants: 1