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

transform automatic for react not working inside yarn workspace #163

Open
WoodenPC opened this issue Sep 14, 2023 · 0 comments
Open

transform automatic for react not working inside yarn workspace #163

WoodenPC opened this issue Sep 14, 2023 · 0 comments

Comments

@WoodenPC
Copy link

WoodenPC commented Sep 14, 2023

Hi, i have project, configured with yarn workspaces.
Project structure:
node_modules
src/packages/ui-kit <- Trying to test this package

When i write transform: { react: { runtime: 'automatic', }, }, inside swc jest config i get error TypeError: (0 , _jsxRuntime.jsx) is not a function. What should i do? It seems that swc cannot find react to import runtime js file from node_modules

React version is 17.0.2 .Written as dev dependency and peer dep inside ui-kit package.json "@swc/jest": "0.2.29",

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

1 participant