You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add shadcn-vue to Nuxt 3 via CLI without using css variables for styling.
Describe the bug
When I add shadcn-vue to a Nuxt 3 project without using the css variables for styling it double quotes all of the imports.
it does a double quote " followed by a single quote ' the imports are not recoginized by the editor or nuxt. It also ignores whatever is in the components json file for the import alias
import { SelectItemText, type SelectItemTextProps } from "'radix-vue'"
import { ChevronDownIcon } from "'@radix-icons/vue'"
Environment
Link to minimal reproduction
The CLI wont install on code sandbox
Steps to reproduce
Add shadcn-vue to Nuxt 3 via CLI without using css variables for styling.
Describe the bug
When I add shadcn-vue to a Nuxt 3 project without using the css variables for styling it double quotes all of the imports.
it does a double quote " followed by a single quote ' the imports are not recoginized by the editor or nuxt. It also ignores whatever is in the components json file for the import alias
import { SelectItemText, type SelectItemTextProps } from "'radix-vue'"
import { ChevronDownIcon } from "'@radix-icons/vue'"
Here is what it does with component creation
<script setup lang="ts"> import { cn } from "'@/lib/utils'" const props = defineProps({ class: { type: String, default: "''", }, }) </script>Expected behavior
To follow the components.json config and to not double quote where it should have a single quote.
Conext & Screenshots (if applicable)
Here is the config setup
The text was updated successfully, but these errors were encountered: