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

update devdDependencies @types/react and @types/react-dom #37423

Conversation

saurabhmehta1601
Copy link
Contributor

@saurabhmehta1601 saurabhmehta1601 commented Jun 3, 2022

fixes #37421

@ijjk ijjk added the examples Issue/PR related to examples label Jun 3, 2022
@codemile
Copy link

codemile commented Jun 4, 2022

You can't install React 18 defs if the project is using React 17.

Copy link
Member

@balazsorban44 balazsorban44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, could we upgrade all other dependencies as well? 👍

@balazsorban44
Copy link
Member

balazsorban44 commented Jun 7, 2022

@saurabhmehta1601 please address my comment here, so we can merge this PR: #37423 (review)

@saurabhmehta1601
Copy link
Contributor Author

saurabhmehta1601 commented Jun 7, 2022

Thanks @balazsorban44 for the review . I am new to contributing to large codebases . Sorry if I have unknowingly caused any inconvenience in the process .

@balazsorban44
Copy link
Member

No problem @saurabhmehta1601! I'm happy to help your first PR merged to the Next.js repo!

What I meant is this:

"react": "^17.0.2",
"react-dom": "^17.0.2",

At the least, these should be upgraded as well so the @types/react and @types/react-dom dependencies correlate to the correct React version.

Copy link
Member

@balazsorban44 balazsorban44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@kodiakhq kodiakhq bot merged commit e965911 into vercel:canary Jun 20, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError : 'Component' cannot be used as JSX component
4 participants