Skip to content
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

[styled-components] The build fails with an error when updating @swc/core to version 1.3.106. #261

Closed
DiFuks opened this issue Feb 2, 2024 · 3 comments

Comments

@DiFuks
Copy link

DiFuks commented Feb 2, 2024

This error occurs when updating @swc/core from version 1.3.105 to 1.3.106 and using the @vitejs/plugin-react-swc plugin.

Reproduce - https://codesandbox.io/p/devbox/swc-plugin-failed-3sl69y?file=%2Findex.html%3A11%2C43

@kdy1
Copy link
Member

kdy1 commented Feb 2, 2024

It's expected. See https://swc.rs/docs/plugin/selecting-swc-core and changelog

@kdy1 kdy1 closed this as completed Feb 2, 2024
@DiFuks
Copy link
Author

DiFuks commented Feb 2, 2024

@kdy1 I read the changelog and did not quite understand - will I now never be able to update to the new version of @swc/core? Or will it support it sooner or later?

@kdy1
Copy link
Member

kdy1 commented Feb 2, 2024

You should update @swc/plugin-styled-components, too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants