Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Production build failing on iOS

$
0
0

@tofra wrote:

Currently i’m kinda lost, tried several things, but I still get this error, and I can’t find any clue on where to look.

I’m doing a production build (ionic cordova prepare ios --prod --release) which successfully builds. But upon running it on iOS (using Xcode on the simulator, or directly on an iPhone) the splashscreen shows with the “spinner”, and there it stays. In the log window of Xcode/Safari I do see that several other data of the application is loaded/processed, so under the splash screen the app is building up the screen with what to show.

ERROR: Unhandled Promise rejection: undefined is not an object (near '...,t),t[i]),E)})(r,e)).then&&(o=await o),o...') ; Zone: <root> ; Task: Promise.then ; Value: TypeError: undefined is not an object (near '...,t),t[i]),E)})(r,e)).then&&(o=await o),o...') ionic://localhost/main-latest.a5adcb5b80b4647a2721.js:1:687411
asyncFunctionResume@[native code]
value@ionic://localhost/polyfills-latest.9367b0957c85ca80c13b.js:1:5388
ionic://localhost/polyfills-latest.9367b0957c85ca80c13b.js:1:18355
value@ionic://localhost/polyfills-latest.9367b0957c85ca80c13b.js:1:6180
m@ionic://localhost/polyfills-latest.9367b0957c85ca80c13b.js:1:14336
promiseReactionJob@[native code]

Another weird thing is, that is sometimes helps if I delete the node_modules directory, then do an npm install and then do the build… Sometimes…

Any clue where I should start looking?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>