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. Please check the error below for more details. If the problem persists, please open an issue on GitHub. #5693

Closed
2 tasks done
justinherrera opened this issue Nov 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@justinherrera
Copy link

Describe the bug

I tried to add the select component and I received errors, when I tried to add another ui I also received the same error. Even running the init command will also produce the same error.

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 error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: next-store-app@0.1.0
npm error Found: react@19.0.0-rc-02c0e824-20241028
npm error node_modules/react
npm error react@"19.0.0-rc-02c0e824-20241028" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.x || ^17.x || ^18.x || ^19.x" from @radix-ui/react-icons@1.3.1
npm error node_modules/@radix-ui/react-icons
npm error @radix-ui/react-icons@"^1.3.0" 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 C:\Users\justi\AppData\Local\npm-cache_logs\2024-11-03T16_01_00_084Z-eresolve-report.txt

npm error A complete log of this run can be found in: C:\Users\justi\AppData\Local\npm-cache_logs\2024-11-03T16_01_00_084Z-debug-0.log

Affected component/components

Al

How to reproduce

  1. Run npx shadcn@latest init -d

Or

  1. npx shadcn@latest add select

Like adding any other ui will fail

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

Windows 11

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@shadcn
Copy link
Collaborator

shadcn commented Nov 4, 2024

I'm going to temporarily bring back the npm flags. Let's track in #5557 please.

@shadcn shadcn closed this as completed Nov 4, 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

2 participants