We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d7cf70 commit 95313d0Copy full SHA for 95313d0
apps/v4/components/ChartDisplay.vue
@@ -1,6 +1,7 @@
1
<script lang="ts">
2
import type { registryItemSchema } from 'shadcn-vue/schema'
3
import type { z } from 'zod'
4
+import { fixImport } from '~/lib/registry-utils'
5
import { cn } from '~/lib/utils'
6
7
export type Chart = z.infer<typeof registryItemSchema> & {
@@ -16,7 +17,7 @@ const props = defineProps<{
16
17
class?: HTMLAttributes['class']
18
}>()
19
-const code = (await import(`@/registry/new-york-v4/charts/${props.name}.vue?raw`)).default
20
+const code = fixImport((await import(`@/registry/new-york-v4/charts/${props.name}.vue?raw`)).default)
21
</script>
22
23
<template>
0 commit comments