rive-app / rive-react

React runtime for Rive

Home Page:https://rive-app.github.io/rive-react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React 18 support

SilencerWeb opened this issue · comments

Hey guys!

Thanks a lot for Rive, we love it!

Are there any plans in near future for React 18 support?

Trying to install Rive in a project with React 18 gives an error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: gatsby-tailwind-starter@0.1.0
npm ERR! Found: react@18.0.0
npm ERR! node_modules/react
npm ERR!   react@"^18.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from rive-react@1.0.6
npm ERR! node_modules/rive-react
npm ERR!   rive-react@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

@SilencerWeb Definitely! Thanks for raising this - we'll work on adding support for it shortly

@SilencerWeb - Try it with version 1.0.7! No breaking changes in this lib to support react 18

Yup, everything seems to be fine! Thanks a lot @zplata