-
-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: 升级到 v0.4.5 本地运行正常,线上运行报错 #5760
Comments
从 0.3.5 升级到的 0.4.5 |
能否依次降级版本试一下,看看具体是哪一个小版本开始出现的这个问题 |
我先这么试下 |
可能是 0.4.1 版本升级了 Rspack v0.5.4 导致的,能否试一下 0.4.1 版本是哪一个报错 |
另外看看能提供一个最小复现 demo 不,方便我们定位问题 |
这个也是在项目里面跑的,小的 demo 不知道能不能复现,等有空了我试下 |
0.3.7 及以下正常 代码都是一样的,感觉不是代码的问题,是不是打包机制哪里发生了变化,看了你们的升级日志都是升级了 rspack 开始报的错 |
我先 transfer issue 到 Rspack 仓库来跟进 |
Hello @iwtem, sorry we can't investigate the problem further without reproduction demo, please provide a repro demo by forking rspack-repro, or provide a minimal GitHub repository by yourself. Issues labeled by |
复现链接及步骤如上。 这是 slate-history 地址:https://github.com/ianstormtaylor/slate/tree/main/packages/slate-history |
Im facing similar issues. My issue seem to refer to an emotion import, but I doubt that it's the issue |
minimal reproducing: https://github.com/xc2/issue-5760 happens only when update: it's a |
@iwtem @martijn-veenstra and everyone who searched for this problem, here is a workaround: try any of minify options below:
here's guides to modify minify options:
it is an upstream bug and can be skip by options. it is confirmed that swc has been fixed this bug in 0.192.2 swc-project/swc#8593 rspack needs to bump swc_ecma_minifier to fix it. |
方案1、2、3 调整后都可以正常运行了,方案 3 会增大 20% 的产物体积,建议使用 1、2方案 |
Version
Details
本地开发均正常,升级到测试环境会有报错,部分页面显示正常,正常的应该是未加载下面的这个文件。
Reproduce link
CodeSandbox 复现链接
Reproduce Steps
如果在项目中引用
slate-history
这个包,就会出现本地开发正常,打包部署错误的问题使用 rsbuild dev 运行正常
使用 rsbuild preview 报错
The text was updated successfully, but these errors were encountered: