s***@163.com
s***@163.com
  • 发布:2023-05-21 01:17
  • 更新:2023-08-03 11:59
  • 阅读:535

打包安卓app白屏,并报错:Cannot read property 'documentElement' of undefined

分类:uni-app

详细问题描述

打包安卓app白屏,并报错:

[内容]

18:06:47.875 项目 'game' 编译成功。
18:06:47.879 正在同步手机端程序文件...
18:07:01.312 同步手机端程序文件完成
18:07:02.963 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught TypeError: Cannot read property 'documentElement' of undefined
at (app-service.js:4270:37)
at (app-service.js:4502:15)
at webpack_require (app-service.js:3594:31)
at (app-service.js:3601:18)
at (app-service.js:3602:10)
at webpackUniversalModuleDefinition (app-service.js:3576:24)
at (app-service.js:3577:7)
at (app-service.js:4509:5)
at (app-service.js:26071:3)

2023-05-21 01:17 负责人:无 分享
已邀请:
s***@163.com

s***@163.com (作者)

已解决,全局搜不到,还需要去node_modules中去搜索

2***@qq.com

2***@qq.com

是找到使用的组件,然后注释吗?

要回复问题请先登录注册