-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
$lib/components" does not use an existing path alias defined in your jsconfig.json #1474
Comments
Confirmed that this does not occur with a project created with |
I opened a PR on your repo that fixes the config files. I don't believe we make any changes to jsconfig.json so maybe some documentation would help here? |
Can you create a new repro without trying to update the config files yourself? In this case the config files were just incorrectly modified. |
Same error on a new repo with no changes to jsconfig or vite.config files.
Also, I don't see any actual changes in jsconfig in the PR other than
changed indentation so perhaps something didn't get committed there.
Thanks for looking into this!
…On Sun, Nov 10, 2024 at 4:10 PM Aidan Bleser ***@***.***> wrote:
Can you create a new repro without trying to update the config files
yourself? In this case the config files were just incorrectly modified.
—
Reply to this email directly, view it on GitHub
<#1474 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACH3QI6ITHR2TDU7YDXFWKDZ75SLVAVCNFSM6AAAAABRQEBKEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRWG42TCMRZGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Ian Engelbrecht
Digitization Coordinator
Natural Science Collections Facility
South Africa
*https://nscf.org.za/ <https://nscf.org.za/>*
+27 82 763 4596
i ***@***.***>***@***.*** / ***@***.***
|
Take another look its its adding an import and moving the options. Please share the repro. |
I have the same issue with a project created with It was however fixed by running vite (or at least pnpm tauri dev, which I guess runs vite) AFTER adding an alias in svelte.config.js and BEFORE running the command |
Oh yeah that initial step is responsible for building out the appropriate tsconfig.json / jsconfig.json @Nokorbis |
If someone wants to add "run your dev server once" to the docs we can probably close this issue |
fixed by #1487 |
Describe the bug
I'm using a Svelte (not SvelteKit) project managed with Vite, no typescript. When I run
npx shadcn-svelte@latest init
I get a message$lib/components" does not use an existing path alias defined in your jsconfig.json
.jsconfig looks has this:
vite.config has:
Thanks!
The vite installation of Svelte only comes with $lib, I added $ components and $utils myself, perhaps init should update the config files for you?
Reproduction
https://github.com/ianengelbrecht/svelte-shadcn-time-picker
Clone, install, and try npx shadcn-svelte@latest init
Logs
No response
System Info
Severity
blocking all usage of shadcn-svelte
The text was updated successfully, but these errors were encountered: