-
Notifications
You must be signed in to change notification settings - Fork 913
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 18 typescript problem #855
Comments
+1 |
is there any progress? |
I think changing the dependency to react 18 in https://github.com/casesandberg/react-color/blob/master/package.json#L90 will fix this issue. Can someone confirm if that is working? |
No, it's not working. |
it would be really nice to have this fixed, I have the same with
|
The same with The working solution: add in package.json
|
The working solution is to add in package.json the bellow setting and re-install the packages:
|
Still getting this error for
I have the following in package.json "react": "^18.2.0",
"react-color": "2.19.3",
"react-dom": "^18.2.0",
"resolutions": {
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6"
}, |
Same error for me... Does someone have a working solution? |
i had to edit my answer here, @iulian-radu-at solution worked for me |
For anyone still wondering about this one, RE-INSTALL the packages after adding the resolutions is the key to get this working. Package.json (excerpt)
|
React has tightened it¤s typing restrictions in v18 and as a result there are a several typescript errors in the project:
The text was updated successfully, but these errors were encountered: