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

Error installing SWR with nextjs #3043

Open
temielosait opened this issue Nov 22, 2024 · 1 comment
Open

Error installing SWR with nextjs #3043

temielosait opened this issue Nov 22, 2024 · 1 comment

Comments

@temielosait
Copy link

Bug report

Description / Observed Behavior

While installing swr using npm install swr, i get this error

Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"19.0.0-rc-66855b96-20241106" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.11.0 || ^17.0.0 || ^18.0.0" from [email protected]
npm ERR! node_modules/swr
npm ERR!   swr@"*" from the root project

Expected Behavior

Install should be successful

Repro Steps / Code Example

npm i swr

Or share your code snippet or a CodeSandbox link is also appreciated!

Additional Context

SWR version.
Add any other context about the problem here.

@prince89arora
Copy link

This is related to #3028

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