Closed some-user123 closed 1 month ago
Details in this (closed) issue: #62
Re-emerged in nuxt@3.6.1
.
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!
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 still works in may 2024, at the meantime this error is still here when project is building
We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info. Please provide a minimal reproduction to reopen the issue. Thanks.
Is this sufficient? https://github.com/mandragora-hub/nuxt-icon-repro-build-bug
Details in this (closed) issue: https://github.com/nuxt-modules/icon/issues/62