-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
run time error while using @formatjs/swc plugin #8121
Comments
Hello @saidarshan27, 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 |
Node - v18.12.0; Here is a reproduction demo: https://github.com/saidarshan27/rspack-formatjs-test Please clone it and run
You should encounter an error like:
Thank you. |
I was using the wrong plugin. I used formatjs/swc-plugin-experimental instead of formatjs/swc-plugin. formatjs/swc-plugin was written in JS and SWC has deprecated using JS plugins long back. |
I am using rspack version 1.0.10 and swc/core version 1.7.0 and formatjs/swc-plugin version 1.5.16.
And here is my javascript loader configuration:
I am getting a run time error which as below:
I have followed the versions according to this webpage https://plugins.swc.rs/versions/range/16
Please help me in how I can use @formatjs/swc-plugin with rspack.
Thank you
The text was updated successfully, but these errors were encountered: