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]: something went wrong while using this : npx shadcn@latest add calendar #6253

Open
2 tasks done
256bitguy opened this issue Jan 3, 2025 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@256bitguy
Copy link

Describe the bug

link-to-any@192 aakkaa-main % npx shadcn@latest add calendar

✔ Checking registry.
⠧ 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 [email protected] date-fns @radix-ui/react-slot
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/date-fns
npm error date-fns@"^4.1.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer date-fns@"^2.28.0 || ^3.0.0" from [email protected]
npm error node_modules/react-day-picker
npm error react-day-picker@"8.10.1" 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.
npm error
npm error
npm error For a full report see:
npm error /Users/link-to-any/.npm/_logs/2025-01-03T02_52_59_360Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/link-to-any/.npm/_logs/2025-01-03T02_52_59_360Z-debug-0.log

Affected component/components

calender

How to reproduce

i dont know

Codesandbox/StackBlitz link

ok

Logs

No response

System Info

macbook

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@256bitguy 256bitguy added the bug Something isn't working label Jan 3, 2025
@JiriKas
Copy link

JiriKas commented Jan 3, 2025

This error occurs due to a dependency conflict. [email protected] requires date-fns version ^2.28.0 || ^3.0.0, but your project currently uses [email protected], which is incompatible.

To resolve this issue, install version 3 of the date-fns package.

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

2 participants