gpt4 book ai didi

javascript - Vercel Next.js 在预渲染页面时生成错误

转载 作者:行者123 更新时间:2023-12-04 14:57:02 25 4
gpt4 key购买 nike

我在我的网站上运行 Vercel 编译,我无法摆脱导出时的预渲染错误。
有谁知道发生这种情况的原因并且可以帮助我吗?
我的 github 和所有代码:https://github.com/M0rilla/MyProfile
对于每个页面都有如上的错误:

    Error occurred prerendering page "/resume". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

Error: Export encountered errors on following paths:
21:20:09.541 /
21:20:09.541 /404
21:20:09.541 /500
21:20:09.541 /experiences
21:20:09.542 /resume
21:20:09.542 /skills
我没有自定义 404 或 500 页面。

最佳答案

Vercel 为下一个版本做了一些定制工作,所以提交 .next从您的本地机器或您的 node_modules 构建工件文件夹可能会以不可预知的方式干扰构建,从而给出看似无意义的错误消息。确保不提交 .nextnode_modules以避免这种行为。

关于javascript - Vercel Next.js 在预渲染页面时生成错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67756696/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com