lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
42.17k stars 9.52k forks source link

[Bug] Netlify 部署陷入死循环 #3189

Closed shylock-wu closed 2 months ago

shylock-wu commented 2 months ago

📦 Environment

Netlify

📌 Version

v1.3.5

💻 Operating System

macOS

🌐 Browser

Edge

🐛 Bug Description

看样子应该是EsLint依赖的版本出了问题,导致部署的时候Netlify一致重复输出 CleanShot 2024-07-10 at 15 41 54@2x

📷 Recurrence Steps

导入新的项目部署就会遇到这个问题

🚦 Expected Behavior

不报错,正常打包部署

📝 Additional Information

No response

lobehubbot commented 2 months ago

👀 @shylock-wu

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

arvinxx commented 2 months ago

你用的是 pnpm 吗

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Are you using pnpm?

shylock-wu commented 2 months ago

不是,就是用的配置文件,我看是npm run build CleanShot 2024-07-10 at 20 01 48@2x

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


No, it’s just the configuration file used. I think it’s npm run build. CleanShot 2024-07-10 at 20 01 48@2x

arvinxx commented 2 months ago

换成pnpm install试试

shylock-wu commented 2 months ago

只能修改打包命令吧,例如修改成pnpm build,下载依赖的命令,netlify好像是自动的,没法修改 从构建信息看,自动使用的npm CleanShot 2024-07-12 at 10 22 29

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


You can only modify the packaging command, for example to pnpm build, to download the dependent commands. Netlify seems to be automatic and cannot be modified. Judging from the build information, npm is automatically used CleanShot 2024-07-12 at 10 22 29

lobehubbot commented 2 months ago

✅ @shylock-wu

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。

shylock-wu commented 2 months ago

Netlify 部署失败,AI 给的答复,EsLint相关依赖的问题,但我估计正常安装也会有这个问题 CleanShot 2024-07-12 at 11 51 41

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Netlify deployment failed, AI gave a reply, EsLint related dependency issues, but I estimate that normal installation will also have this problem CleanShot 2024-07-12 at 11 51 41

RubuJam commented 2 months ago

同步一下最新的代码,应该修复了这个问题

Synchronize the latest code, this problem should be fixed

lobehubbot commented 2 months ago

:tada: This issue has been resolved in version 1.4.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

shylock-wu commented 2 months ago

同步一下最新的代码,应该修复了这个问题

Synchronize the latest code, this problem should be fixed

你们测试过了吗,去Netlify导入一个项目测试一下很简单的,实际上并没有修复。我部署最新的代码还是同样的问题,使用pnpm跟部署失败没有关系

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Synchronize the latest code, this problem should be fixed

Synchronize the latest code, this problem should be fixed

Have you tested it? It's very simple to import a project into Netlify and test it, but it actually doesn't fix it. I deployed the latest code and still had the same problem. Using pnpm had nothing to do with the deployment failure.

shylock-wu commented 2 months ago

是这个包@typescript-eslint/eslint-plugin对等依赖的问题 CleanShot 2024-07-15 at 12 12 51

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It’s a problem with the peer dependency of this package @typescript-eslint/eslint-plugin CleanShot 2024-07-15 at 12 12 51

RubuJam commented 2 months ago

@shylock-wu 我尝试修改了配置文件,但无论如何都会存在问题,我建议你改用Vercel

I tried modifying the configuration file, but the problem persists regardless. I suggest you use Vercel instead.

shylock-wu commented 2 months ago

@RubuJam Thanks🤗! 使用Vercel部署没问题,之所以要在Netlify部署,是因为我发现Vervel的提供的免费域名被污染了,我的Wifi打不开,但是用Netlify部署的可以打开,都是在不开🪜的情况下

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Thank you🤗! There is no problem in deploying using Vercel. The reason why I want to deploy in Netlify is because I found that the free domain name provided by Vervel is contaminated. My Wifi cannot be opened, but it can be opened when deployed with Netlify. Without opening 🪜

RubuJam commented 2 months ago

@shylock-wu 或许你可以试一试Zeabur或Sealos,这两个平台应该还未被污染

Maybe you can try Zeabur or Sealos, these two platforms should not be polluted yet.

arvinxx commented 2 months ago

https://github.com/lobehub/lobe-chat/pull/3232 可以再试试 @shylock-wu

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


https://github.com/lobehub/lobe-chat/pull/3232 You can try again @shylock-wu