xiaolan
xiaolan
  • 发布:2024-09-12 17:15
  • 更新:2024-09-13 09:38
  • 阅读:102

uniapp转app报错Cannot read property 'call' of undefined

分类:uni-app

运行到微信小程序正常,运行app报错

reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught TypeError: Cannot read property 'call' of undefined  
 at __webpack_require__ (app-service.js:80:30)  
 at eval (<anonymous>:16:38)  
 at  (app-service.js:164:1)  
 at __webpack_require__ (app-service.js:80:30)  
 at checkDeferredModules (app-service.js:46:23)  
 at webpackJsonpCallback (app-service.js:33:19)  
 at  (app-service.js:155:53)
2024-09-12 17:15 负责人:无 分享
已邀请:
aska_yang

aska_yang

你好,有解决方案了吗?我也遇到了,离线打包APP,开启分包后就是这个

  • xiaolan (作者)

    可以试下把manifest.json中app-plus下的"optimization" : {"subPackages" : true}替换成"optimization" : {"subPackages" : false}

    2024-09-13 10:03

  • z***@126.com

    回复 xiaolan: 该方法已试,行不通。(我的情况是这样,不代表所有人)

    2024-11-05 16:40

要回复问题请先登录注册