Skip to content
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

Not working with React 18 #2

Closed
souhailmerroun opened this issue Jul 30, 2022 · 3 comments
Closed

Not working with React 18 #2

souhailmerroun opened this issue Jul 30, 2022 · 3 comments

Comments

@souhailmerroun
Copy link

Running on npm install agora-rtm-react on newly created react app

using npx create-react-app my-app --template typescript

gives this error

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: my-app@0.1.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0 || ^17" from agora-rtm-react@1.1.0
npm ERR! node_modules/agora-rtm-react
npm ERR!   agora-rtm-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.
npm ERR! 
npm ERR! See /home/codespace/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/codespace/.npm/_logs/2022-07-30T10_52_19_973Z-debug-0.log
@souhailmerroun souhailmerroun changed the title npm ERR! Found: react@18.2.0 Not working with React 18 Jul 30, 2022
@souhailmerroun
Copy link
Author

Workaround is to downgrade to React 17

See: facebook/create-react-app#12269 (comment)

@EkaanshArora
Copy link
Contributor

Added support for React 18.

@souhailmerroun
Copy link
Author

thanks @EkaanshArora

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants