当我运行时yarn dev出现以下错误
(节点:171412)UnhandledPromiseRejectionWarning:TypeError:无法在异步 Promise.all(索引 xxx\my-next-app\node_modules\next\dist\server\hot-reloader.js:16:94)处设置未定义的属性“状态” 0) at async DynamicEntryPlugin.config.entry (xxx\my-next-app\node_modules\next\dist\server\hot-reloader.js:15:96) (用于
node --trace-warnings ...显示创建警告的位置)(节点:171412 ) UnhandledPromiseRejectionWarning:未处理的承诺拒绝。此错误的根源是在没有 catch 块的情况下抛出异步函数内部,或者拒绝未使用 .catch() 处理的 Promise。要在未处理的 Promise 拒绝时终止节点进程,请使用 CLI 标志--unhandled-rejections=strict(请参阅 https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode)。(拒绝 ID:32)
我一直无法弄清楚这个问题
我的下一个版本是 ^10.0.4
| 归档时间: |
|
| 查看次数: |
1112 次 |
| 最近记录: |