本地开发情况下Compiling时间非常长 #5030
-
📦 部署环境Other 📌 软件版本最新版 💻 系统环境Windows 🌐 浏览器Edge 🐛 问题描述在本地使用pnpm情况下,每次run dev时间都更长,每个页面的compiling时间基本都在一分钟。 📷 复现步骤No response 🚦 期望结果No response 📝 补充信息No response |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
✓ Starting... |
Beta Was this translation helpful? Give feedback.
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
Hey @blainehuang1028! I'm here to help you with any bugs, questions, or contributions you have. Let's get that issue sorted out together! If you need anything, just give me a shout. 本地开发情况下编译时间过长可能与多个因素有关。以下是一些可能影响编译时间的配置和插件:
此外,项目使用了 Vite 作为构建工具,可能需要检查 Vite 的配置以优化编译时间[2]。 你可以尝试以下优化措施:
希望这些信息能帮助你解决编译时间过长的问题。 |
Beta Was this translation helpful? Give feedback.
-
疑似是windows环境问题,切换到mac和docker后速度飞快 |
Beta Was this translation helpful? Give feedback.
-
It is suspected to be a Windows environment problem. After switching to mac and docker, the speed is very fast. |
Beta Was this translation helpful? Give feedback.
-
This issue is closed, If you have any questions, you can comment and reply. |
Beta Was this translation helpful? Give feedback.
-
我的window开发也是一模一样,非常慢 |
Beta Was this translation helpful? Give feedback.
-
My window development is exactly the same, very slow |
Beta Was this translation helpful? Give feedback.
-
我也碰到这个问题了,无论是在windows还是linux上都有这个问题。用pnpm build后pnpm start就很快。能告诉怎么优化吗? |
Beta Was this translation helpful? Give feedback.
-
I have also encountered this problem, whether on Windows or Linux. After using pnpm build, pnpm start is very fast. Can you tell me how to optimize it? |
Beta Was this translation helpful? Give feedback.
-
本地开发慢是现状,原因是 LobeChat 现在的模块依赖比较多,且 next@14 仍然使用的 webpack 作为 bundler (众所周知 webpack 很慢)。 解法是升级到 next@15 并且开启 Turbopack ,简单测过编译速度能提升一倍左右: #4449 (comment) 。 等 antd 兼容 next@15 版本之后会做升级,届时开发速度应该就能提升不少了 |
Beta Was this translation helpful? Give feedback.
本地开发慢是现状,原因是 LobeChat 现在的模块依赖比较多,且 next@14 仍然使用的 webpack 作为 bundler (众所周知 webpack 很慢)。
解法是升级到 next@15 并且开启 Turbopack ,简单测过编译速度能提升一倍左右: #4449 (comment) 。
等 antd 兼容 next@15 版本之后会做升级,届时开发速度应该就能提升不少了