-
Notifications
You must be signed in to change notification settings - Fork 339
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]: Sidebar component is not insatllable. #929
Comments
Same issue in Vuejs Vite |
any update for this issue also i have it in vue vite |
I was able to fix it by manually transforming typescript files to js myself. |
@pushpak1300 which files please some help here |
enable typescript while installation (that throws bunch of errors) |
@AlijonMurodov thank u for the ui it is amazing |
yup happy to help |
https://github.com/pushpak1300/Larasonic/tree/main/resources/js/Components/shadcn/ui/sidebar. Check this out and copy this folder @yazantenjaz |
Can you try again? I realised some error with the registry and pushed a fix 😁 |
I tried it again. @zernonia the issue still there. |
Yeah I also got same error, and got .ts instead of .js \Components\ui\sidebar\SidebarGroupAction.vue.ts: Unexpected token, expected "," (1:116)
> 1 | [Primitive];['---detypes-delimiter---'];[as];['---detypes-delimiter---'];[asChild];['---detypes-delimiter---'];[the button on mobile.
| ^
2 | 'after:absolute after:-inset-2 after:md:hidden',
3 | 'group-data-[collapsible=icon]:hidden',
4 | props.class,
|
Same for me. I do have Also, there is an import issue, as in installed components they are trying to import other components using registry dir structure. For example:
|
@SerhiiKorniienko you need to add the component first and change the import to I think it would be better if the add command |
@erwinyusrizal Sure, that will do. I don't remember such a thing with other components. But the bigger issue is that it's not converted into *.js component after installation. |
I get the same error. |
Reproduction
Laravel , Vite
Describe the bug
When you try to download sidebar package on fresh project.
npx shadcn-vue@latest add sidebar
The following error occurs.Even though TS is disable in
components.json
the files downloaded was Typescript files.System Info
Contributes
The text was updated successfully, but these errors were encountered: