Dependency Resolution Issue when Installing Shadcn in Next.js 15 #66216
Labels
bug
Issue was opened via the bug report template.
create-next-app
Related to our CLI tool for quickly starting a new Next.js application.
invalid link
The issue was auto-closed due to a missing/invalid reproduction link. A new issue should be opened.
Link to the code that reproduces this issue
.npm/_logs/2024-05-25T12_28_44_568Z-debug-0.log
To Reproduce
Install Next.js version 15.
Run npx shadcn-ui@latest init to initialize a project with Shadcn UI.
Select options for style and color.
Encounter the dependency resolution error.
Issue Summary:
I encountered a dependency resolution problem when trying to initialize a project with Shadcn UI in Next.js 15. The error message indicates a conflict between different versions of React required by the packages being installed.
Current vs. Expected behavior
Expected Behavior:
The project initialization process should complete successfully without any dependency conflicts.
Actual Behavior:
The dependency resolution fails, preventing the installation of necessary packages.
Provide environment information
Which area(s) are affected? (Select all that apply)
create-next-app
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
Tried running the initialization command with --force and --legacy-peer-deps flags, but the issue persisted.
Manually reviewed the npm logs for more information, but the logs didn't provide a clear solution.
This issue is specifically observed in Next.js version 15. It might not occur in other versions.
The text was updated successfully, but these errors were encountered: