每当我更改视图时,我的离子应用程序都会抛出以下错误,我无法找到原因,任何人都知道我做错了什么? TypeError: Cannot read property 'expire' of null at file:///android_asset/www/lib/ionic/js/ionic.bundle.
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)正如我在评论中写的那样,我遇到了同样的问题,看起来它是离子v1.0.1中的一个错误.在下面的链接的线程中的某处,建议在使用ionic的“menu-close”属性时问题显现出来:
https://github.com/driftyco/ionic/issues/4038
将“菜单关闭”更改为“菜单切换”后,问题就消失了,对我来说这已经足够了.我想很快就会修复.
希望能帮助到你!