Days Lost - Ionic Serve = ok, Android Fails


#1

I’m struggling to isolate a bug with android that seems wildly inconsistent. Ionic serve works fine and no errors. But when I launch with android my first page gives me the following error:

8 186522 error EXCEPTION: Cannot convert undefined or null to object
9 186533 error ORIGINAL STACKTRACE:
10 186535 error TypeError: Cannot convert undefined or null to object
at Function.t.format (http://192.168.1.144:8100/build/main.js:9:25357)
at Ue (http://192.168.1.144:8100/build/main.js:1:23877)
at t.transform (http://192.168.1.144:8100/build/main.js:9:29292)
at http://192.168.1.144:8100/build/main.js:1:9587
at e.detectChangesInternal (http://192.168.1.144:8100/build/main.js:47:19884)
at e.t.detectChanges (http://192.168.1.144:8100/build/main.js:8:26021)
at e.t.detectViewChildrenChanges (http://192.168.1.144:8100/build/main.js:8:26569)
at e.detectChangesInternal (http://192.168.1.144:8100/build/main.js:46:30232)
at e.t.detectChanges (http://192.168.1.144:8100/build/main.js:8:26021)
at t.detectChanges (http://192.168.1.144:8100/build/main.js:8:5743)
11 186538 log constructed
12 186570 log loan init
13 186572 log end init
14 186574 error Uncaught TypeError: Cannot convert undefined or null to object, http://192.168.1.144:8100/build/polyfills.js, Line: 3

I’ve tried cutting slicing the page to very small components but it seems as if it can be inconsistent from build to build. Some builds everything works fine… seemingly i make ZERO changes, build again and it fails the next time.

Any one have hints to help me get a real line number? Or maybe build to android without uglifying and minimizing the code?