-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
@vitejs/plugin-react - Wrong JSX runtime used in linked dependency #5642
Comments
I see the same problem in my similar yarn workspaces setup after upgrading to
I can create a repro if needed as well.
There are some changes about when transform-react-jsx is applied. So this might the culprit? |
Can confirm that downgrading to |
Please test with |
|
|
Describe the bug
I'm trying to test a module federation setup with react and vite, but ran into issues before getting to the federation parts.
When loading a linked dependency in a workspace the react plugin will build it with the old runtime (
React.createElement
) even though the application uses the new one.See the repro repo for more details
Probably related to #5608
Reproduction
https://github.com/BeeeQueue/vite-react-monorepo/tree/repro
System Info
Used Package Manager
pnpm
Logs
Validations
The text was updated successfully, but these errors were encountered: