react-loader-spinner icon indicating copy to clipboard operation
react-loader-spinner copied to clipboard

It is not compatible with react 19

Open YoniC0de opened this issue 1 year ago • 4 comments

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]

YoniC0de avatar Dec 25 '24 11:12 YoniC0de

Same problem :-|

Vacilando avatar Jan 10 '25 16:01 Vacilando

install with --legacy-peer-deps for temporary solution. Not recommended with production builds

sebcioxd avatar Jan 11 '25 01:01 sebcioxd

Hello, please could you provide fix solution for this urgent problem.

Thanks

Levis0045 avatar Feb 02 '25 18:02 Levis0045

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"
    }
  },

TomTom-Labs avatar Mar 14 '25 13:03 TomTom-Labs