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

asking for tsconfig despite of choosing javascript #1566

Closed
KMJ-007 opened this issue Sep 20, 2023 · 8 comments
Closed

asking for tsconfig despite of choosing javascript #1566

KMJ-007 opened this issue Sep 20, 2023 · 8 comments
Labels

Comments

@KMJ-007
Copy link
Contributor

KMJ-007 commented Sep 20, 2023

image
@c0b41
Copy link
Contributor

c0b41 commented Sep 20, 2023

duplicate #821

@shadcn
Copy link
Collaborator

shadcn commented Sep 22, 2023

@KMJ-007 do you have a jsconfig.json file?

@AnandBawa
Copy link

I finally got it working with Vite + JS correctly.

Follow the first two steps as described in Vite setup docs: https://ui.shadcn.com/docs/installation/vite

Create a jsconfig.json file in root and use this:
{ "compilerOptions": { "baseUrl": ".", "paths": { "@/*": ["./src/*"] } } }

Setup vite.config.js like this:
image

Now install shadcn with the CLI command. Everything should correctly work now and you can add components after setup. Here's components.json as reference:
image

@KMJ-007
Copy link
Contributor Author

KMJ-007 commented Oct 7, 2023

@KMJ-007 do you have a jsconfig.json file?

no,

shouldn't it create itself, if not present?

and it should have showed error for jsconfig not tsconfig

can i do PR for correct error msg ?

@saheemshafi
Copy link

saheemshafi commented Nov 14, 2023

Is the issue about jsconfig shown as tsconfig really fixed. I recently tried using with vite + react + js and it was still showing tsconfig doesn't exist and that's why I am here.

@keenan137
Copy link

keenan137 commented Dec 6, 2023

Is the issue about jsconfig shown as tsconfig really fixed. I recently tried using with vite + react + js and it was still showing tsconfig doesn't exist and that's why I am here.

Same but #1566 (comment) fixed the problem

@shadcn shadcn added the Stale label Feb 14, 2024
@shadcn
Copy link
Collaborator

shadcn commented Feb 27, 2024

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

@shadcn shadcn closed this as completed Feb 27, 2024
@ansgarsteinkamp
Copy link

This bug is still present.

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

No branches or pull requests

7 participants