-
Notifications
You must be signed in to change notification settings - Fork 48
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
JSX element errors when upgrading to @types/react 18.2.22 #983
Comments
It seems like this upgrade broke a few libraries: |
Let's see if merging #967 will help with that |
We'll also need a new npm release to leverage the changes |
I know, GH actions have been quite slow to build, so it slowed down merging the dependency PRs. |
@gruyaume Version 0.47.1 is released with updated dependencies, including We used to have issues with incompatible versions of types/react coming from different dependencies, so we ended up enforcing resolution of a single version via Lines 99 to 100 in 4915006
If you are using types/react in your project directly, maybe you need to do something similar, to make sure all dependencies use the exact same version of types. |
Overview
After upgrading from @types/react 18.2.21 to 18.2.22, we are getting build errors of the type
is not a valid JSX element type
for Canonical's React components. For example:You can look at this PR from renovate that tries to upgrade the package version and the corresponding CI build error:
The text was updated successfully, but these errors were encountered: