Comments (6)
In the release artifact, which you've been using, symbols are stripped. This results in the backtrace or the stack telling nothing useful for debugging. Would you please try to reproduce it so we can proceed?
from rspack.
Great repro! I was able to reproduce it locally. A fix is coming right over.
from rspack.
Hello @markmssd, 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 need reproduction
will be closed if no activities in 14 days.
from rspack.
Ah ok. I'll keep trying. So far I noticed that by using the builtin swc, it's working, and it crashes or hangs only when using our own (by using require.resolve). Not sure if that's related, but I did see an upgrade of swc_core in Rspack, so maybe? I'll re-update once I have a repro.
from rspack.
Alright so using a custom loader, I was indeed able to reproduce it: https://github.com/markmssd/rspack-hmr-performance-regression/tree/swc-custom-loader!
- This repro uses Rspack
0.7.3
, but it's the same with0.7.4-canary
- Downgrading to Rspack
0.7.2
works without problem - On
0.7.3
, if you use the builtin loader (uncomment here and comment the one below it), it also works - In this repro, I haven't used the latest SWC/SWC Helpers version, but it's the same with latests
- In this repro, I get a different error than in my personal project, possibly because it's different code and crashes at a different place, but it's crashing as expected.
Steps to reproduce:
git clone https://github.com/markmssd/rspack-hmr-performance-regression/tree/swc-custom-loader
cd rspack-hmr-performance-regression
npm install --force
npm start
Let me know if I can provide anything more to help!
from rspack.
Thanks @h-a-n-a ! π I'll wait for the next release to re-test it (issue is still happening with 0.7.4-canary-bdc2037-20240617004808
, so I guess it doesn't include this fix yet)
from rspack.
Related Issues (20)
- [Bug]: should have dependency id HOT 21
- [Bug]: plugin compiles fine in webpack, but does not work in rspack HOT 7
- [Feature]: Add chunks raised for imports in third-party npm packages, which need to be captured in ouput.chunkFilename HOT 3
- [Tracking]: JS -> TS refactor the remaining .js file to .ts and esm HOT 1
- [Bug]: HMR update not found HOT 5
- [Bug]: Panic occured at runtime. HOT 1
- [Bug Report]: css-loader errors occurred while using tailwindcss. HOT 2
- JavaScript parsing error: Expression expected HOT 2
- [Bug]: `webpack-test/statsCases/runtime-specific-used-exports` randomly panics
- [Bug]: module federation plugin makes dev/build/HMR a lot slower HOT 4
- [Bug]: Bad output with two `||` in an expression
- [Tracking]: Rsnext support
- [Feature]: Detect recursive import HOT 1
- [Bug]: Random error with CopyRspackPlugin HOT 1
- [Bug]: Rspack does not allow to set target based on browserlist entries
- [Bug]: The production environment page crashes and reports TypeError when the version is upgraded to 1.0.0-alpha.5
- [Bug]: rspack.CopyRspackPlugin modifies file content HOT 2
- [Feature]: port css-extract latest features
- [Bug]:CopyRspackPlugin ζδ»Άζ₯ι HOT 6
- [Bug]: Panic occurred when recompile in serve/watch mode (rspack v 1.0.0-alpha.5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspack.