NotionNext icon indicating copy to clipboard operation
NotionNext copied to clipboard

【部署】Command "yarn run build" exited with 1

Open jim00jim opened this issue 2 months ago • 7 comments

描述遇到的问题 部署出错 一: 15:55:38.835 Warning: Detected "engines": { "node": ">=20" } in your package.json that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version

二: 15:55:39.705 warning Pattern ["string-width@^4.1.0"] is trying to unpack in the same destination "/vercel/.cache/yarn/v6/npm-string-width-cjs-4.2.3-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.

三: 15:56:30.124 warning "react-facebook > [email protected]" has incorrect peer dependency "[email protected] || 16.x". 15:56:30.124 warning "react-notion-x > [email protected]" has unmet peer dependency "@babel/runtime@>=7". 15:56:30.125 warning "react-notion-x > [email protected]" has incorrect peer dependency "react@^15 || ^16". 15:56:30.125 warning "react-notion-x > [email protected]" has incorrect peer dependency "react-dom@^15 || ^16". 15:56:30.126 warning "react-notion-x > react-lazy-images > [email protected]" has incorrect peer dependency "react@^15.0.0 || ^16.0.0 || ^17.0.0".

异常 ReferenceError: ids is not defined Error: Command "yarn run build" exited with 1

相应配置 notion_page_id:08bb17a81ebe417fb61c004642e14646 你的网站地址:gerald.dpdns.org

截图

Image

环境

  • 操作系统: windows
  • 浏览器 chrome
  • 版本141.0.7390.55(正式版本)

jim00jim avatar Oct 08 '25 08:10 jim00jim

我也是遇到这个问题

limkkk1 avatar Oct 08 '25 09:10 limkkk1

我也是,看来又是notion更新什么机制了

gaolianghu123 avatar Oct 08 '25 09:10 gaolianghu123

大概率是同一个问题 https://github.com/tangly1024/NotionNext/issues/3626

tangly1024 avatar Oct 08 '25 10:10 tangly1024

Image 重新部署报错: 21:40:13.059 error Command failed with exit code 1. 21:40:13.060 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 21:40:13.082 Error: Command "yarn run build" exited with 1

jiabao-wang avatar Oct 08 '25 13:10 jiabao-wang

vercel上重新部署就会这样,但是从github sync后自动更新的没问题。

x0fun1 avatar Oct 08 '25 15:10 x0fun1

不确定何时修复,但可以更新项目使用自定义配置方案,参考这篇文章进行配置:https://docs.tangly1024.com/article/notion-next-api_base_url

lifeafter619 avatar Oct 09 '25 01:10 lifeafter619

在vercel 上配置一下 环境变量 API_BASE_URL 为 自己的正确的。不要用默认的www.notion.so...

cllcall avatar Oct 09 '25 03:10 cllcall