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

Fix React import issue #32

Closed
tomislav-s opened this issue Sep 1, 2021 · 1 comment
Closed

Fix React import issue #32

tomislav-s opened this issue Sep 1, 2021 · 1 comment

Comments

@tomislav-s
Copy link
Contributor

React is globally present in projects with react 17. However, when importing a missing component the quickfix option suggests adding importing React instead of the component. We should find a way to fix this

@tomislav-s
Copy link
Contributor Author

It seems this only works if tsconfig.json's jsx is set to something other than "preserve" - unfortunately this currently isn't possible with Next.js.

More info here:
microsoft/TypeScript#41762

@iksi iksi closed this as completed Mar 20, 2023
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