-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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]: npm error #5555
Comments
That error is not the reason for shadcn/ui. It's coming from the radix-ui/icons package. Someone tried to fix it but not merged yet. I'm waiting too. |
I am having the same error, is there a way I can resolve it by using a previous version or something ? |
me too |
I just followed the manual install instructions on shadcn https://ui.shadcn.com/docs/installation/manual and instead of npm install @radix-ui/react-icons I used npm install react-icons and it seemed to work. However, you will then need to continue the manual process and add the lib/utils.ts file as well. Otherwise it worked. |
@brannonwinn, worked for me as well, thanks! |
I tried chosing the Default style instead of New York and it worked. If the style is not relevant I guess you can work around it. |
I'm working on a fix. Let's use #5557 to track since they are related. |
Describe the bug
After NEXT JS 15 shadcn is having issues in installation, devs please look into this issue
Affected component/components
its having error in installation
How to reproduce
1.Install Next.js: npx create-next-app@latest
2.Navigate to the Project Directory
3.Initialize ShadCN: npx shadcn@latest init -d
4.Encounter Dependency Conflict:
Error appears due to React version mismatch:
ERESOLVE unable to resolve dependency tree
react@"^16.x || ^17.x || ^18.x" from @radix-ui/react-icons
Codesandbox/StackBlitz link
https://ui.shadcn.com/docs/installation/next
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: