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

[bug]: working with next 15 #5499

Closed
2 tasks done
waleed-taher opened this issue Oct 22, 2024 · 3 comments
Closed
2 tasks done

[bug]: working with next 15 #5499

waleed-taher opened this issue Oct 22, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@waleed-taher
Copy link

Describe the bug

unable to install next-themes with next 15
image

Affected component/components

next-themes

How to reproduce

npm install next-themes

will give out an error if a project is upgrading to react-19-rc and next 15

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"19.0.0-rc-65a56d0e-20241020" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8 || ^17 || ^18" from [email protected]
npm ERR! node_modules/next-themes

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@waleed-taher waleed-taher added the bug Something isn't working label Oct 22, 2024
@shokks
Copy link

shokks commented Oct 22, 2024

same here - but in my case, even more basic, just installing shadcn on a fresh install of nextjs15

 ✔ Updating app/globals.css
⠋ Installing dependencies.
⠦ Installing dependencies.
Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Command failed with exit code 1: npm install tailwindcss-animate class-variance-authority lucide-react @radix-ui/react-icons clsx tailwind-merge
npm warn idealTree Removing dependencies.tailwindcss-animate in favor of devDependencies.tailwindcss-animate
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error   react@"19.0.0-rc-65a56d0e-20241020" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.x || ^17.x || ^18.x" from @radix-ui/[email protected]
npm error node_modules/@radix-ui/react-icons
npm error   @radix-ui/react-icons@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

'''

@marbenz2
Copy link

@shokks @waleed-taher

Try adding --legacy-peer-deps
It works for me with nextjs 15

@shadcn
Copy link
Collaborator

shadcn commented Oct 28, 2024

I'm working on a fix. Let's use #5557 to track since they are related.

@shadcn shadcn closed this as completed Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants