I am getting runtime error after upgrade to RC4
how to fix it?
Runtime Error
Uncaught (in promise): false
Stack
Error: Uncaught (in promise): false
at s (http://localhost:8100/build/polyfills.js:3:4211)
at s (http://localhost:8100/build/polyfills.js:3:4034)
at http://localhost:8100/build/polyfills.js:3:4574
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9723)
at Object.onInvokeTask (http://localhost:8100/build/main.js:39169:37)
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9659)
at e.runTask (http://localhost:8100/build/polyfills.js:3:7083)
at i (http://localhost:8100/build/polyfills.js:3:3671)
at HTMLElement.invoke (http://localhost:8100/build/polyfills.js:3:10876)
Ionic Framework: 2.0.0-rc.4
Ionic Native: ^2.2.12
Ionic App Scripts: 0.0.47
Angular Core: 2.2.1
Angular Compiler CLI: 2.2.1
Node: 6.9.2
OS Platform: macOS Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36
get the latest 0.0.48 scripts: npm install @ionic/app-scripts@latest --save-dev
after upgrade, following error occurred on first --prod build: [INFO:CONSOLE(73)] "Uncaught Error: Module build failed: TypeError: Cannot set property āsourcesā of undefined in node_modules@ionic\app-scripts\dist\webpack\loader-impl.js:35:37
I am not concerned about source maps, so I changed a few lines in loader-impl.js, to read as follows:
Best luck to you, but in my case I donāt understand where is the actual issue, please see following errorā¦ if you can get idea let me knowā¦
Runtime Error
Uncaught (in promise): false
Stack
Error: Uncaught (in promise): false
at s (http://localhost:8100/build/polyfills.js:3:4211)
at s (http://localhost:8100/build/polyfills.js:3:4034)
at http://localhost:8100/build/polyfills.js:3:4574
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9723)
at Object.onInvokeTask (http://localhost:8100/build/main.js:39169:37)
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9659)
at e.runTask (http://localhost:8100/build/polyfills.js:3:7083)
at i (http://localhost:8100/build/polyfills.js:3:3671)
at HTMLElement.invoke (http://localhost:8100/build/polyfills.js:3:10876)
Ionic Framework: 2.0.0-rc.4
Ionic Native: ^2.2.12
Ionic App Scripts: 0.0.47
Angular Core: 2.2.1
Angular Compiler CLI: 2.2.1
Node: 6.9.2
OS Platform: macOS Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36
I was suffering through these and it came down to my have a loading controller object that I was trying to dismiss. I removed the call to its dismiss() method and just added an option of having the loading controller remove itself on page changes. That, for me, solved that issue. It took many many hours to work through that and it was only after someone referencing dismissing controllers that I thought about my use of loading controllers - which had worked fine in previous release candidates. No idea if this will help - but hereās hoping it does.
You have to narrow down the information. e.g: if this error appear upon launching your app, it means you have something wrong in your app module. If error appear upon opening some page, it means the error must be on page you try to open.
You also didnāt mention what version you were before upgrading to RC.4
Edit :
I didnāt see your last post it appears you have solve it already