uni-app 真机调试启动时出现白屏并抛出错误
uni-app 真机调试启动时出现白屏并抛出错误
操作步骤:
- 任意uniapp项目真机运行、启动调试
预期结果:
- 调试服务正常启动
实际结果:
- 2022-04-15 14:36:51.778 [WARNING:] weexdebugger readyReadStandardError::: "(node:24996) UnhandledPromiseRejectionWarning: Error: spawn UNKNOWN
at ChildProcess.spawn (internal/child_process.js:408:11)
at Object.spawn (child_process.js:553:9)
at Launcher.launch (D:\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\Launcher.js:132:40)
at async Object.exports.launchHeadless (D:\HBuilderX\plugins\uniapp-debugger\node_modules@dcloudio\uni-debugger\src\server\headless.js:16:13)
(node:24996) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:24996) [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. " - 2022-04-15 14:36:57.519 [WARNING:] weexdebugger errorOccurred::: “进程已崩溃”
- 2022-04-15 14:37:41.678 [INFO:] [Update] do check update…
- 2022-04-15 14:37:42.695 [INFO:] indexFileURL: “http://update.liuyingyong.cn/hbuilderx/alpha/win32/update/index.json?tmp=52662695”
- 2022-04-15 14:37:42.801 [INFO:] [Update] No update.
- 2022-04-15 14:37:42.855 [WARNING:] QLayout: Attempting to add QLayout “” to MsgItemWidget “MsgItem”, which already has a layout
- 2022-04-15 14:39:54.457 [WARNING:] [MENU] !!!Can’t find the action id: “unicloud.localRunOrStop”
bug描述:
- 启动真机调试 白屏并抛出错误
- 2022-04-15 14:36:51.778 [WARNING:] weexdebugger readyReadStandardError::: "(node:24996) UnhandledPromiseRejectionWarning: Error: spawn UNKNOWN
at ChildProcess.spawn (internal/child_process.js:408:11)
at Object.spawn (child_process.js:553:9)
at Launcher.launch (D:\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\Launcher.js:132:40)
at async Object.exports.launchHeadless (D:\HBuilderX\plugins\uniapp-debugger\node_modules@dcloudio\uni-debugger\src\server\headless.js:16:13)
(node:24996) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:24996) [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. " - 2022-04-15 14:36:57.519 [WARNING:] weexdebugger errorOccurred::: “进程已崩溃”
- 2022-04-15 14:37:41.678 [INFO:] [Update] do check update…
- 2022-04-15 14:37:42.695 [INFO:] indexFileURL: “http://update.liuyingyong.cn/hbuilderx/alpha/win32/update/index.json?tmp=52662695”
- 2022-04-15 14:37:42.801 [INFO:] [Update] No update.
- 2022-04-15 14:37:42.855 [WARNING:] QLayout: Attempting to add QLayout “” to MsgItemWidget “MsgItem”, which already has a layout
- 2022-04-15 14:39:54.457 [WARNING:] [MENU] !!!Can’t find the action id: “unicloud.localRunOrStop”
更多关于uni-app 真机调试启动时出现白屏并抛出错误的实战教程也可以访问 https://www.itying.com/category-93-b0.html
2 回复
uniapp初始项目一样