当我将下一个 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 的页面,所以我真的不知道这个错误指的是什么。我尽可能多地检查以找到可靠的答案,但不能。任何帮助表示赞赏!
最佳答案
我发现有一个没有生成页面所需的属性的对象。一旦我删除它,一切都很好
关于reactjs - 由于 '' 导出在以下路径上遇到错误,因此下一个 JS 构建失败”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65425601/