由于“导出在以下路径上遇到错误”,下一个JS构建失败

当我将下一个 js 站点部署到 vercel 时遇到此构建错误

15:02:38    > Build error occurred
15:02:38    Error: Export encountered errors on following paths:
15:02:38        /about/undefined
15:02:38        at exportApp (/vercel/workpath0/node_modules/next/dist/export/index.js:30:1103)
15:02:38        at processTicksAndRejections (internal/process/task_queues.js:97:5)
15:02:38        at async /vercel/workpath0/node_modules/next/dist/build/index.js:39:69
15:02:38        at async /vercel/workpath0/node_modules/next/dist/build/tracer.js:1:525

我的网站没有称为 about 的页面,所以我真的不知道这个错误指的是什么。我尽可能多地检查以找到可靠的答案,但不能。任何帮助表示赞赏!

回答

我发现有一个没有生成页面所需的属性的对象。一旦我删除它,一切都很好


以上是由于“导出在以下路径上遇到错误”,下一个JS构建失败的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>