My ionic app throws the following errors whenever I change views and I can't find why, anybody knows what am I doing wrong?
TypeError: Cannot read property 'expire' of null
at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:43339:37
at Scope.$broadcast (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:23547:28)
at $state.transition.resolved.then.$state.transition (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:41017:22)
at processQueue (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:22016:27)
at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:22032:27
at Scope.$eval (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:23228:28)
at Scope.$digest (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:23044:31)
at Scope.$apply (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:23333:24)
at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:25059:36
at completeOutstandingRequest (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:13732:10)
ionic.bundle.js (20434,24)
So as I wrote in the comment, I had the same issue and it looks it's a bug in ionic v1.0.1. Somewhere here in the thread in the link below, it is suggested that the problem manifests itself when using ionic's "menu-close" attribute:
https://github.com/driftyco/ionic/issues/4038
After changing the "menu-close" to "menu-toggle" the problem disappeared and for me this is good enough. I guess a fix will be committed shortly.
Hope it helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With