NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Bug] 无法在cloudflare pages部署

Open bian2022 opened this issue 2 years ago • 3 comments

为了提高交流效率,我们设立了官方 QQ 群和 QQ 频道,如果你在使用或者搭建过程中遇到了任何问题,请先第一时间加群或者频道咨询解决,除非是可以稳定复现的 Bug 或者较为有创意的功能建议,否则请不要随意往 Issue 区发送低质无意义帖子。

点击加入官方群聊

反馈须知

⚠️ 注意:不遵循此模板的任何帖子都会被立即关闭,如果没有提供下方的信息,我们无法定位你的问题。

请在下方中括号内输入 x 来表示你已经知晓相关内容。

  • [ *] 我确认已经在 常见问题 中搜索了此次反馈的问题,没有找到解答;
  • [* ] 我确认已经在 Issues 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解答。
  • [* ] 我确认已经在 Vercel 使用教程 中搜索了此次反馈的问题,没有找到解答。

描述问题 请在此描述你遇到了什么问题。

无法使用cloudflare pages部署

如何复现 请告诉我们你是通过什么操作触发的该问题。

截图 请在此提供控制台截图、屏幕截图或者服务端的 log 截图。 IMG_20240113_223003 IMG_20240113_223047

一些必要的信息

  • 系统:[比如 windows 10/ macos 12/ linux / android 11 / ios 16]
  • 浏览器: [比如 chrome, safari]
  • 版本: [填写设置页面的版本号]
  • 部署方式:[比如 vercel、docker 或者服务器部署]

cloudflare pages部署

日志:

2024-01-13T14:25:41.423412Z	Cloning repository...
2024-01-13T14:25:42.517634Z	From https://github.com/ve-cf-bushu/ChatGPT-Next-Web-1
2024-01-13T14:25:42.518162Z	 * branch            0cf66141860413f378b883660fdeaec2e909d90c -> FETCH_HEAD
2024-01-13T14:25:42.518303Z	
2024-01-13T14:25:42.593989Z	HEAD is now at 0cf6614 Merge pull request #3813 from ChatGPTNextWeb/update-cn-qq-info
2024-01-13T14:25:42.594567Z	
2024-01-13T14:25:42.692837Z	
2024-01-13T14:25:42.693416Z	Using v2 root directory strategy
2024-01-13T14:25:42.722236Z	Success: Finished cloning repository files
2024-01-13T14:25:43.522763Z	Detected the following tools from environment: [email protected], [email protected]
2024-01-13T14:25:43.523564Z	Installing project dependencies: yarn
2024-01-13T14:25:44.201515Z	➤ YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker 👍
2024-01-13T14:25:44.201844Z	
2024-01-13T14:25:44.302255Z	➤ YN0000: ┌ Resolution step
2024-01-13T14:25:46.161783Z	➤ YN0032: │ fsevents@npm:2.3.2: Implicit dependencies on node-gyp are discouraged
2024-01-13T14:25:46.361874Z	➤ YN0061: │ @babel/plugin-proposal-dynamic-import@npm:7.18.6 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-dynamic-import instead.
2024-01-13T14:25:46.400034Z	➤ YN0061: │ @babel/plugin-proposal-class-static-block@npm:7.21.0 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-static-block instead.
2024-01-13T14:25:46.429328Z	➤ YN0061: │ @babel/plugin-proposal-private-property-in-object@npm:7.21.0 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.
2024-01-13T14:25:46.45284Z	➤ YN0061: │ @babel/plugin-proposal-class-properties@npm:7.18.6 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
2024-01-13T14:25:46.489423Z	➤ YN0061: │ @babel/plugin-proposal-json-strings@npm:7.18.6 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-json-strings instead.
2024-01-13T14:25:46.49243Z	➤ YN0061: │ @babel/plugin-proposal-optional-catch-binding@npm:7.18.6 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.
2024-01-13T14:25:46.504997Z	➤ YN0061: │ @babel/plugin-proposal-async-generator-functions@npm:7.20.7 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
2024-01-13T14:25:46.50802Z	➤ YN0061: │ @babel/plugin-proposal-numeric-separator@npm:7.18.6 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
2024-01-13T14:25:46.516947Z	➤ YN0061: │ @babel/plugin-proposal-nullish-coalescing-operator@npm:7.18.6 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
2024-01-13T14:25:46.519476Z	➤ YN0061: │ @babel/plugin-proposal-logical-assignment-operators@npm:7.20.7 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.
2024-01-13T14:25:46.527148Z	➤ YN0061: │ @babel/plugin-proposal-export-namespace-from@npm:7.18.9 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.
2024-01-13T14:25:46.533581Z	➤ YN0061: │ @babel/plugin-proposal-private-methods@npm:7.18.6 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.
2024-01-13T14:25:46.536914Z	➤ YN0061: │ @babel/plugin-proposal-unicode-property-regex@npm:7.18.6 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.
2024-01-13T14:25:46.570237Z	➤ YN0061: │ @babel/plugin-proposal-optional-chaining@npm:7.21.0 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
2024-01-13T14:25:46.580235Z	➤ YN0061: │ @babel/plugin-proposal-object-rest-spread@npm:7.20.7 is deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
2024-01-13T14:25:46.718719Z	➤ YN0061: │ stable@npm:0.1.8 is deprecated: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
2024-01-13T14:25:53.972724Z	➤ YN0000: └ Completed in 9s 670ms
2024-01-13T14:25:54.025355Z	➤ YN0000: ┌ Post-resolution validation
2024-01-13T14:25:54.025742Z	➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
2024-01-13T14:25:54.025924Z	➤ YN0000: └ Completed
2024-01-13T14:25:54.026069Z	➤ YN0000: Failed with errors in 9s 725ms
2024-01-13T14:25:54.091897Z	Error: Exit with error code: 1
2024-01-13T14:25:54.092187Z	    at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
2024-01-13T14:25:54.092331Z	    at Object.onceWrapper (node:events:652:26)
2024-01-13T14:25:54.092455Z	    at ChildProcess.emit (node:events:537:28)
2024-01-13T14:25:54.092602Z	    at ChildProcess._handle.onexit (node:internal/child_process:291:12)
2024-01-13T14:25:54.099313Z	Failed: build command exited with code: 1
2024-01-13T14:25:54.997958Z	Failed: error occurred while running build command

bian2022 avatar Jan 13 '24 14:01 bian2022

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] Unable to deploy on cloudflare pages

Issues-translate-bot avatar Jan 13 '24 14:01 Issues-translate-bot

历史issues里有解决方案的,自己按时间翻一下 https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues/3411#issue-2017989593

ogvegzvt avatar Jan 15 '24 02:01 ogvegzvt

Bot detected the issue body's language is not English, translate it automatically.


If there are solutions in historical issues, you can browse them by time.

Issues-translate-bot avatar Jan 15 '24 02:01 Issues-translate-bot