-
-
Notifications
You must be signed in to change notification settings - Fork 605
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]: Panic occurred when using SWC plugin in development mode #5921
Comments
@h-a-n-a cc~ |
Seeing a runtime panic when trying to use https://github.com/kwonoj/swc-plugin-coverage-instrument:
|
tracking list of panic cases related to swc-plugins: |
Thanks for reporting this issue to us. |
Thanks @h-a-n-a, I'm not clear on what the 1.5.113 version refers to and is this a change the plugin maintainers would need to make? |
@h-a-n-a I have a similar problem. If using other plugins like swc-plugin-auto-css-modules, how do I choose which version to use? Is there any corresponding guidance for the swc version used by rspack? |
Thanks for reaching out. It's the version of official plugins provided by swc. For current Rspack version v0.5.8, If It's provided by the third party author, You have to check if the crate The biggest difference between |
Ok, so for swc-plugin-coverage-instrument
So that means I would need to wait for an |
Yes, or you can downgrade to plugin of the version within that range. |
I tried a few versions of Thanks for all the work on |
@esturcke We're going to release a minor version of rspack next week. In this version, we bumped |
This issue would be closed. For followup plugin selections, please refer to https://swc.rs/docs/plugin/selecting-swc-core. |
System Info
System:
OS: macOS 13.6.3
CPU: (10) arm64 Apple M1 Pro
Memory: 1.03 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Yarn: 1.22.19 - ~/Library/Application Support/fnm/node-versions/v18.19.0/installation/bin/yarn
npm: 10.2.3 - ~/Library/Application Support/fnm/node-versions/v18.19.0/installation/bin/npm
pnpm: 8.15.4 - ~/Library/Application Support/fnm/node-versions/v18.19.0/installation/bin/pnpm
Browsers:
Chrome: 122.0.6261.112
Safari: 16.6
npmPackages:
@rspack/cli: latest => 0.5.7
@rspack/core: latest => 0.5.7
Details
Panic occurred when using SWC plugin in development mode:
Rspack config:
Reproduce link
https://github.com/chenjiahan/rspack-repro-swc-warn-plugin
Reproduce Steps
The text was updated successfully, but these errors were encountered: