Open miclaus opened 1 month ago
JavaScript support for shadcn-vue components is not yet completed
Process of transforming Vue/TS to Vue/JS is handled by detypes
inside CLI which has some edge cases
Related issue https://github.com/radix-vue/shadcn-vue/issues/378
Describe the bug
When installing the
Select
component as described on the website like so:I was getting the following errors:
I checked out the installed files
SelectItem.vue
andSelectContent.vue
and noticed that there is an extra square bracket]
placed after thecn(...)
function call in each file respectively for the:class
attribute.Code for
```vueSelectItem.vue
when installing theSelect
component over the CLICode for
```vueSelectContent.vue
when installing theSelect
component over the CLIWeirdly enough the code in the repository / registry seems to be correct, hence there isn't any
]
after thecn(...)
function call for the:class
attribute:https://github.com/radix-vue/shadcn-vue/blob/d50ea38f4abccdad5db190ad2b1da26815e4c6aa/apps/www/src/lib/registry/default/ui/select/SelectItem.vue#L31
and
https://github.com/radix-vue/shadcn-vue/blob/d50ea38f4abccdad5db190ad2b1da26815e4c6aa/apps/www/src/lib/registry/default/ui/select/SelectContent.vue#L43
System Info
Contributes