icon icon indicating copy to clipboard operation
icon copied to clipboard

Nuxt - typescript error

Open qlash opened this issue 2 years ago • 2 comments

When building with newly created nuxt app i've got an error:

node_modules/nuxt-icon/dist/runtime/Icon.vue:11:19 - error TS2352: Conversion of type 'AppConfig' to type '{ nuxtIcon: { size?: string | undefined; class?: string | undefined; aliases?: Record<string, string> | undefined; iconifyApiOptions?: { url?: string | undefined; publicApiFallback?: boolean | undefined; } | undefined; }; }' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. Property 'nuxtIcon' is missing in type 'AppConfig' but required in type '{ nuxtIcon: { size?: string | undefined; class?: string | undefined; aliases?: Record<string, string> | undefined; iconifyApiOptions?: { url?: string | undefined; publicApiFallback?: boolean | undefined; } | undefined; }; }'.

11 const appConfig = useAppConfig() as { ~~~~~~~~~~~~~~~~~~~ 12 nuxtIcon: { ~~~~~~~~~~~~~ ... 20 } ~~~ 21 } ~

qlash avatar Jan 16 '24 12:01 qlash

me too!

kiritoko1029 avatar Jan 17 '24 02:01 kiritoko1029

Duplicate of #117

warrenseine avatar Jan 17 '24 10:01 warrenseine