Closed chanthavong closed 1 year ago
Should be fixed by ^0.2.10 ; could you try it? :)
Error is still occuring on nuxt 3.1.1:
ERROR(vue-tsc) Property 'nuxtIcon' does not exist on type 'AppConfig'.
FILE /node_modules/.pnpm/nuxt-icon@0.2.10/node_modules/nuxt-icon/dist/runtime/Icon.vue:34:40
32 | const component = computed(() => nuxtApp.vueApp.component(iconName.value))
33 | const sSize = computed(() => {
> 34 | const size = props.size || appConfig.nuxtIcon?.size || '1em'
| ^^^^^^^^
35 | if (String(Number(size)) === size) {
36 | return `${size}px`
37 | }
error message
ERROR(vue-tsc) Property 'nuxtIcon' does not exist on type 'AppConfig'. const props = defineProps({ name: { type: String as PropType<keyof AppConfig['nuxtIcon']['aliases'] | (string & {})>, ^^^^^^^^^^ required: true },
code