【部署】Command "yarn run build" exited with 1
描述遇到的问题
部署出错
一:
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
截图
环境
- 操作系统: windows
- 浏览器 chrome
- 版本141.0.7390.55(正式版本)
我也是遇到这个问题
我也是,看来又是notion更新什么机制了
大概率是同一个问题 https://github.com/tangly1024/NotionNext/issues/3626
vercel上重新部署就会这样,但是从github sync后自动更新的没问题。
不确定何时修复,但可以更新项目使用自定义配置方案,参考这篇文章进行配置:https://docs.tangly1024.com/article/notion-next-api_base_url
在vercel 上配置一下 环境变量 API_BASE_URL 为 自己的正确的。不要用默认的www.notion.so...