Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error TS2339: Property 'aliases' does not exist on type '{}' #86

Closed
some-user123 opened this issue Jun 20, 2023 · 11 comments
Closed

error TS2339: Property 'aliases' does not exist on type '{}' #86

some-user123 opened this issue Jun 20, 2023 · 11 comments

Comments

@some-user123
Copy link

Details in this (closed) issue: #62

@ennioVisco
Copy link

Details in this (closed) issue: #62

Re-emerged in nuxt@3.6.1.

@stephiescastle
Copy link

Anyone know a workaround for this other than disabling typecheck?

@Me-Phew
Copy link

Me-Phew commented Jul 29, 2023

One workaround could be to add this to the app.config.ts

nuxtIcon: { aliases: undefined, class: undefined, size: undefined, },

@jamesray
Copy link

@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.

@stephiescastle
Copy link

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.

@Me-Phew
Copy link

Me-Phew commented Aug 1, 2023

Are you also getting this error?

@zllvm
Copy link

zllvm commented Aug 6, 2023

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
  }
}

@Me-Phew
Copy link

Me-Phew commented Aug 6, 2023

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!

@atinux atinux mentioned this issue Aug 7, 2023
@gaomingzhao666
Copy link

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

@antfu
Copy link
Member

antfu commented May 31, 2024

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.

Why reproduction is required

@antfu antfu closed this as completed May 31, 2024
@some-user123
Copy link
Author

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants