12 Jul 2012 10:06 PM #1
TypeError:’undefined’ is not an object while loading app on iOS 5
Any thoughts what can cause it ?
13 Jul 2012 4:53 AM #2
Yeh I've had this before too. It is ugly to debug because safari doesn't give you a line number.
The error I had was even worse because on desktop safari it was fine. Yuck!
I wish I could tell you there's a magic way to fix it, but there isn't one that I know of... just lots of console.log()s at certain points in your app until you work out where execution is stopping. That was a fun 3 hours of my life !!
17 Jul 2012 6:04 AM #3
I've managed to recreate the same problem by going to Kitchen Sink in Safari (5.1.7, Win7) and by using iPhone (iOS 5.1.1). The only trick was to enter Private Browsing mode in Safari.
TypeError: 'undefined' is not an object (evaluating 't.assets')
Looks like a problem with microloader/production.js, when HTML5 localStorage is blocked by Private Browsing in Safari.
27 Sep 2012 11:30 AM #4
I've verified this in the latest public/working ST2 and SDK tools beta3
This makes all apps crash and burn silently on any iOS device with private browsing enabled. Why hasn't this been marked as a bug? Will it be resolved in CMD / ST2.1? Can we get a patch for existing apps built with ST2.0 and SDKtoolsB3?Chief Architect @ Jarv.us Innovations
Co-captain @ Code for Philly
Jarvus builds and optimizes top-quality Sencha Touch and ExtJS apps for open-source projects and clients of all sizes.
Don't waste time with bugs that have already been found and fixed by the community, compile our tried and tested hotfixes packages into all your projects: https://github.com/JarvusInnovations/sencha-hotfixes