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

React 17 CRA v4.0.1 with new JSX transform not working #10139

Closed
dominikabieder opened this issue Nov 24, 2020 · 4 comments
Closed

React 17 CRA v4.0.1 with new JSX transform not working #10139

dominikabieder opened this issue Nov 24, 2020 · 4 comments

Comments

@dominikabieder
Copy link

dominikabieder commented Nov 24, 2020

I've upgraded react-scripts to 4.0.1 and react to version 17.0.0 (on webstorm), run codemod npx react-codemod update-react-imports --force, but it kept showing 'React' must be in scope when using JSX react/react-in-jsx-scope error. I removed node_modules and package-lock, installed everything again, but the error didn't disappear.

@willypraditya
Copy link

Same issue here.

@dcsan
Copy link

dcsan commented Nov 24, 2020

broke typescript also #10144

@rafgraph
Copy link
Contributor

@dominikabieder if it's a VS Code editor issue, this may help: #10144 (comment)

@ianschmitz
Copy link
Contributor

Closing as this is an editor issue, and can be resolved by the suggestion by @rafgraph until VS Code updates their integrated version of TS.

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

No branches or pull requests

5 participants