-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
TypeError: "paths[0]" property must be of type string, got undefined #1003
Comments
I am also getting the same error. I'm using bun. |
@jackra1n Thank you for the reproduction! Unfortunately, I'm unable to reproduce the issue with the provided steps. Could you provide a demo repo so that I can have a concrete project to work off of? Edit: It looks like I can reproduce it if I use the @jhakeinson Thanks for the report. npx envinfo --system --npmPackages svelte,shadcn-svelte,@sveltejs/kit --binaries --browsers in the projects that you're having this issue with and provide the logged output here? This is mainly to see if there's a common thread among systems. @Triips-TheCoder Looking at the error, this seems to be unrelated to this issue. Can you raise a separate issue with a reproduction? |
I checked and you're right ! It was an issue with my |
I am not adding |
The result is the same then. The CLI is being executed in the Bun runtime (as Node isn't present), which is not supported. We support the Bun package manager, but not the runtime. To fix, install Node and bunx will execute the CLI script in the correct runtime. |
#1011 Fixes this issue and unblocks Bun and Deno from being used to run the CLI. With that said, runtimes outside of Node v18 or higher are not officially supported. The fix in this case was trivial, but future issues may not be. As such, if you want a stable and consistent experience, just stick to Node. Using Bun as a package manager should be fine, though. |
Describe the bug
When trying to init shadcn-svelte with bun im getting the following error:
Reproduction
Logs
No response
System Info
Severity
blocking all usage of shadcn-svelte
The text was updated successfully, but these errors were encountered: