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

"ReferenceError: foo is not defined" after upgrading to 3.4.0 #153

Closed
Kamahl19 opened this issue Sep 26, 2023 · 3 comments
Closed

"ReferenceError: foo is not defined" after upgrading to 3.4.0 #153

Kamahl19 opened this issue Sep 26, 2023 · 3 comments

Comments

@Kamahl19
Copy link

Kamahl19 commented Sep 26, 2023

After upgrading from 3.3.2 to 3.4.0 I am getting "ReferenceError: theme is not defined" when importing theme from Antd https://github.com/Kamahl19/react-starter/blob/main/src/common/styleUtils.ts#L3 . It seems it's caused by changes in @swc/core version 1.3.89

swc-project/swc#8007

@ArnaudBarre
Copy link
Member

This was resolved upstream, closing

@ArnaudBarre ArnaudBarre closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2023
@Kamahl19
Copy link
Author

@ArnaudBarre could you please release a new version with this fix? Thanks!

@ArnaudBarre
Copy link
Member

The command depend on your pacage manager but you can bump the SWC version in your node_module without having a new version of the package. And probably doing remove @vitejs/plugin-react-swc && add @vitejs/plugin-react-swc should work

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

No branches or pull requests

2 participants