点击调试就白屏

- 发布:2020-09-25 11:07
- 更新:2020-11-04 11:07
- 阅读:1323
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10 1909
HBuilderX类型: 正式
HBuilderX版本号: 2.8.11
手机系统: Android
手机系统版本号: Android 9.0
手机厂商: 小米
手机机型: 小米MIX2S
页面类型: vue
打包方式: 离线
项目创建方式: HBuilderX
操作步骤:
预期结果:
正常调试
正常调试
实际结果:
白屏
白屏
bug描述:
在真机上运行时正常的,但一进入调试就会调试工具和真机白屏。不知道是不是跟新笔记本amd的CPU有关,以前旧笔记本用英特尔的是可以正常调试的。换了新的笔记本后就不行了。
日志报错:
11:01:35.281 正在启动调试服务
11:01:36.497 (node:5196) UnhandledPromiseRejectionWarning: Error: Chromium revision is not downloaded. Run "npm install" or "yarn install"
11:01:36.497 at Launcher.launch (D:\develop\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\Launcher.js:119:15)
11:01:36.497 at <anonymous>
11:01:36.497 (node:5196) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
11:01:36.497 (node:5196) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
11:01:36.497
11:01:37.475 调试服务已启动。日志信息将显示在Debug窗体的Console里
BlackHeart (作者)
谢谢,用你和@DCloud_UNI_GSQ大佬的方法解决了。
2020-11-09 09:38
天字第一号
确实好用,这个问题一直有,搜了好几次,这次终于解决了,感谢
2020-12-25 13:43