midwayjs / midway

🍔 A Node.js Serverless Framework for front-end/full-stack developers. Build the application for next decade. Works on AWS, Alibaba Cloud, Tencent Cloud and traditional VM/Container. Super easy integrate with React and Vue. 🌈
https://www.midwayjs.org/
MIT License
7.34k stars 573 forks source link

出现UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory #770

Closed xmsz closed 3 years ago

xmsz commented 3 years ago
(node:52719) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, unlink '.faas_debug_tmp/build/web/__index_document.js'
(node:52719) 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: 33)
(node:52719) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, unlink '.faas_debug_tmp/build/web/__index_document.js'
(node:52719) 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: 34)

情况一:

情况二:

所以这种情况要如何解决或者避免

echosoar commented 3 years ago

看起来像是在重新构建时,清理某些文件的时候,由于这个文件已经删除了导致的报错。 能否提供可复现此问题的git仓库地址?

xmsz commented 3 years ago

看起来像是在重新构建时,清理某些文件的时候,由于这个文件已经删除了导致的报错。 能否提供可复现此问题的git仓库地址?

https://github.com/xmsz/midwayjs-midway-issues-770 邀请你了

可以复现

echosoar commented 3 years ago

fixed: @midwayjs/cli @1.2.34

echosoar commented 3 years ago