-
Notifications
You must be signed in to change notification settings - Fork 290
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
【Question】'React' refers to a UMD global, but the current file is a module. Consider adding an import instead. #280
Comments
I'm getting the same error with TypeScript. The migration guide for the new JSX transforms in React v17 doesn't mention anything about TypeScript and this seems to be a TypeScript error. My setup: |
We ran into this also. You can fix it by setting the |
ok "jsx": "preserve", |
how to use JSX transforms with TypeScript3.9? Any leads? |
If you're talking about the new jsx transform that comes with react v17, that's only supported in TypeScript 4.1+ |
Run :
npx react-codemod update-react-imports
babel version:
It report:
The text was updated successfully, but these errors were encountered: