icon
icon copied to clipboard
error TS2339: Property 'aliases' does not exist on type '{}'
Details in this (closed) issue: https://github.com/nuxt-modules/icon/issues/62
Anyone know a workaround for this other than disabling typecheck?
One workaround could be to add this to the app.config.ts
nuxtIcon: { aliases: undefined, class: undefined, size: undefined, },
@Atinux any updates on this issue? We're using nuxt-icon in production and this is something we're hoping to not need to create a workaround for.
One workaround could be to add this to the
app.config.ts
nuxtIcon: { aliases: undefined, class: undefined, size: undefined, },
Thanks @Me-Phew! This worked as a temporary fix and allows us to keep typeCheck enabled for everything else.
Are you also getting this error?
Are you also getting this error?
You could add index.d.ts
to temporarily solve it as it is mentioned in pull#63 by luke-z:
// workaround for https://github.com/nuxt-modules/icon/pull/63
import * as _nuxt_schema from '@nuxt/schema'
interface NuxtIconModuleOptions {
size?: string | false
class?: string
aliases?: { [alias: string]: string }
}
declare module '@nuxt/schema' {
interface AppConfig {
nuxtIcon?: NuxtIconModuleOptions
}
}
Are you also getting this error?
You could add
index.d.ts
to temporarily solve it as it is mentioned in pull#63 by luke-z:// workaround for https://github.com/nuxt-modules/icon/pull/63 import * as _nuxt_schema from '@nuxt/schema' interface NuxtIconModuleOptions { size?: string | false class?: string aliases?: { [alias: string]: string } } declare module '@nuxt/schema' { interface AppConfig { nuxtIcon?: NuxtIconModuleOptions } }
It works, thanks!