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

Failing to install via shadcn cli #112

Open
0xRaduan opened this issue Jan 29, 2025 · 4 comments
Open

Failing to install via shadcn cli #112

0xRaduan opened this issue Jan 29, 2025 · 4 comments

Comments

@0xRaduan
Copy link

Error message:

npx shadcn add "https://motion-primitives.com/c/accordion.json"

Something went wrong. Please check the error below for more details.
If the problem persists, please open an issue on GitHub.

Cannot read properties of undefined (reading 'resolvedPaths')

npm notice 
npm notice New major version of npm available! 9.6.7 -> 11.0.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.0.0
npm notice Run npm install -g [email protected] to update!
npm notice 

Also separate piece of feedback - would be great if I don't need to jump between pro/non pro docs, in order to install a pro section.

@ibelick
Copy link
Owner

ibelick commented Jan 29, 2025

Are you trying to install it in a Tailwind CSS v4 project? I think it may have an error because shadcn/ui hasn't been updated yet.
I'll improve the docs for the Pro version, thank you for the feedback!

@0xRaduan
Copy link
Author

Yeah, I think it uses tailwindcss ^3.3.2. To be fair, I have your components put into a separate directory(components/motion instead of components/ui). Could it be the case?

@ibelick
Copy link
Owner

ibelick commented Jan 31, 2025

@0xRaduan no, that’s not a problem. It will be installed to components/ui with the CLI, but you can move it afterward. What’s your React/Next.js version?

@0xRaduan
Copy link
Author

React/Nextjs:

"react": "18.2.0",
"next": "13.4.9"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants