shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
72.61k stars 4.42k forks source link

[bug]: working with next 15 #5499

Open waleed-taher opened 16 hours ago

waleed-taher commented 16 hours ago

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: chat_pdf_saas@0.1.0
npm ERR! Found: react@19.0.0-rc-65a56d0e-20241020
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 next-themes@0.3.0
npm ERR! node_modules/next-themes

Before submitting

shokks commented 6 hours ago

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: nextjs15_test@0.1.0
npm error Found: react@19.0.0-rc-65a56d0e-20241020
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/react-icons@1.3.0
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.

'''