react-loader-spinner
react-loader-spinner copied to clipboard
It is not compatible with react 19
When I upgrade to React 19, I get the following error:
npm ERR! peer react@"^16.0.0 || ^17.0.0 || ^18.0.0" from [email protected]
Same problem :-|
install with --legacy-peer-deps for temporary solution. Not recommended with production builds
Hello, please could you provide fix solution for this urgent problem.
Thanks
As a temporary solution, I use an overwrite in package.json - not the best solution, but works for me until this package is fully tested and enabled for react 19
"overrides": {
"react-loader-spinner": {
"react": "^18 || ^19",
"react-dom": "^18 || ^19"
}
},