Open colorninja opened 1 month ago
After hours of debugging - I found the issue was a the icon package I was using - @tabler/icons@^1.119.0
. I upgraded to the newest version ^3
and it is super quick now.
I will try to create a minimal reproducible example tomorrow.
Thanks, a minimal reproduction will be very helpful
Here is a minimal reproduction example: https://github.com/colorninja/rsbuild-slow-compile-bug
Obviously there is some incapability with this package because it works great with everything else. I think the main pain point here is that there is no easy way to find out why it behaves the way it does. The only reason I found out it was this was because I tried removing packages one-by-one to see if it starts compiling fast.
I used yarn because that's what I use normally. Not sure if the behaviour would be different with npm but shouldn't.
At present, I think this issue is related to Rspack which is currently under in-depth investigation.
Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Message: internal error: entered unreachable code
Location: crates/rspack_plugin_javascript/src/dependency/esm/provide_dependency.rs:79
Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
Version
Details
I migrated an existing app using
react-scripts
torsbuild
. I thought it would be easy because in my other project it was extremely easy. However, in this one I can not figure out why it's taking so long to initially build.Initial dev build: 2 - 3 minutes HMR rebuild: 0.02s Prod build: 4s
The CPU is at 100% while initially building for dev for the whole duration - node process. Sometimes even showing at 200% in Activity Monitor.
I tried:
I also tried:
When running with debug mode:
What would be my next step debugging this?
Reproduce link
Can't reproduce easily
Reproduce Steps