Closed demiro closed 1 year ago
I repeats in all the imports, all the components added... and in the code (cn function) as well for example:
<script setup lang="ts">
import {
DropdownMenuSubTrigger,
type DropdownMenuSubTriggerProps,
} from "'radix-vue'"
import { ChevronRight } from "'lucide-vue-next'"
import { cn } from "@/lib/utils"
const props = defineProps<DropdownMenuSubTriggerProps & { class?: string }>()
</script>
<template>
<DropdownMenuSubTrigger
v-bind="props"
:class="["
cn( "'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-slate-100 data-[state=open]:bg-accent' dark:focus:bg-slate-800"
,
props.class,
),
]"">
<slot />
<ChevronRight class="ml-auto h-4 w-4" />
</DropdownMenuSubTrigger>
</template>
duplicated of https://github.com/radix-vue/shadcn-vue/issues/98
Are you using
Vue
withoutTypeScript
?
of course not... using it with vite and typescript
Environment
Link to minimal reproduction
/
Steps to reproduce
pnpm dlx shadcn-vue@latest init
pnpm dlx shadcn-vue@latest add dropdown-menu
Describe the bug
After installing first component(s) I am getting
Checked the documentation if I missed the step installing a dependency, but haven't seen any reference to radix-vue. But after examining package.json, it was there...
and then I double check the error, and it is clear, there are doulbe quotes along with single quotes in the index.ts file:
Expected behavior
use double quotes or single quotes... not both
Conext & Screenshots (if applicable)
No response