g***@sina.com
g***@sina.com
  • 发布:2019-07-19 23:18
  • 更新:2019-07-19 23:18
  • 阅读:1567

【报Bug】ReferenceError: Can't find variable: MyComponent

分类:uni-app

前几天模拟器运行还好好的,今天尝试离线打包,说SDK为2.1.1,我的IDE为2.1.0,打包出来不能在真机上运行,然后更新了IDE至2.1.1。现在连模拟器运行都不行了,MyComponent是我自定义的组件,不管是全局定义还是局部定义都不行。
运行在安卓模拟器上时会报以下错误:

23:13:47.316 13:46.697 14743 14759 E console : [ERROR] reportJSException >>>> exception function:createInstance, exception:Exception: ReferenceError: Can't find variable: MyComponent
23:13:47.337 13:46.697 14743 14759 E console :
23:13:47.362 13:46.697 14743 14759 E console : eval code
23:13:47.387 13:46.697 14743 14759 E console : eval@[native code]
23:13:47.410 13:46.697 14743 14759 E console : ../../../../../../Users/richard/Develop/workspace/uni-app/crbank-tiny-test/main.js@(global function):1795:5
23:13:47.431 13:46.697 14743 14759 E console : __webpack_require__@(global function):1511:35
23:13:47.453 13:46.697 14743 14759 E console : checkDeferredModules@(global function):1468:45
23:13:47.474 13:46.697 14743 14759 E console : (global function):1359:61
23:13:47.503 13:46.697 14743 14759 E console : require@(global function):7:664076
23:13:47.519 13:46.697 14743 14759 E console : (global function):7:663691
23:13:47.543 13:46.697 14743 14759 E console : (global function):2530:8
23:13:47.570 13:46.697 14743 14759 E console : require@(global function):7:664076
23:13:47.592 13:46.697 14743 14759 E console : (global function):2532:8
23:13:47.621 13:46.697 14743 14759 E console : anonymous@(global function):2838:7
23:13:47.630 13:46.697 14743 14759 E console : (weex framework):1:41522
23:13:47.652 13:46.697 14743 14759 E console : createInstance@(weex framework):1:41533
23:13:47.673 13:46.697 14743 14759 E console : (weex framework):1:178096
23:13:47.698 13:46.697 14743 14759 E console :
23:13:47.719 13:46.697 14743 14759 E console : getTemplateInfo== template md5 848cd4ee0cb2e785ee5860ab05c2c97f length 2660651 base64 md5 hIzU7gyy54XuWGCrBcLJfw== response header {"templateSourceBase64MD5":["hIzU7gyy54XuWGCrBcLJfw=="],"templateSourceMD5":["848cd4ee0cb2e785ee5860ab05c2c97f"]}

2019-07-19 23:18 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复