reactjs - 由于 '' 导出在以下路径上遇到错误,因此下一个 JS 构建失败”

标签 reactjs next.js vercel

当我将下一个 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/

相关文章:

javascript - Nest.js 部署到 now.sh

javascript - Nextjs API 文件夹调用 - 生产中出现 500 错误

css - 使用 flexbox 和 svg(使用 Sandbox) react 星级评分组件

scala - PlayFramework 与 Scala、WebJars、ReactJS 和 RequireJS 一起使用吗?

javascript - 在 React JSX 中满足先决条件之前,新页面正在渲染

css - 在 Next.js 10 中打印样式表

javascript - 如何更新 react 组件的渲染数据?

next.js - 将 CSS Reset 文件应用到 Next.js 页面

kubernetes - ENV_VARS "undefined"当通过 Gitlab CI/CD 将 Next JS 应用程序部署到 Kubernetes 集群时 :

next.js - 无法导出 `getServerSideProps` 的页面