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]: Trying to init a new project but it cant generate a new components.json #6288

Open
2 tasks done
skeexs opened this issue Jan 6, 2025 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@skeexs
Copy link

skeexs commented Jan 6, 2025

Describe the bug

Following all the steps on https://ui.shadcn.com/docs/installation/vite
But it still gives me this error.

Affected component/components

No components

How to reproduce

  1. Installing vite, creating react-ts template.
    2 . Installing tailwind, postcss and autoprefixer.
  2. Configuring tailwind.config.js, tsconfig.json and tsconfig.app.json
  3. installing types/node and then replacing in vite.config.ts
  4. Running npx shadcn@latest init

Then getting error:

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

Invalid configuration found in C:\path\to\my\project\components.json

Trying to create a own components.json then its giving the error that a components.json already exists...

Codesandbox/StackBlitz link

No response

Logs

✔ Preflight checks.
✔ Verifying framework. Found Vite.
✔ Validating Tailwind CSS.
✔ Validating import alias.

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

Invalid configuration found in C:\path\to\my\project/components.json.

System Info

Windows, Vite, x64. Idk what else

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@skeexs skeexs added the bug Something isn't working label Jan 6, 2025
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

1 participant