Skip to content

Auto Import Types Not Resolving in latest v1.11.0 #373

Open
@w3cj

Description

@w3cj

The latest version v1.11.0 does not properly resolve the auto imported type of Icon

With the previous v1.10.3 - the auto imported Icon component shows a type error if missing props and also shows available props in the VS Code context window:

Image

With v1.11.0 - the Icon component does not show any type errors if missing props and the available props are not displayed by VS Code:

Image

Using dependencies:

{
    "@nuxt/icon": "1.11.0",
    "nuxt": "^3.16.0",
    "vue": "^3.5.13",
    "vue-router": "^4.5.0"
}

With latest nuxt config:

export default defineNuxtConfig({
  compatibilityDate: '2024-11-01',
  devtools: { enabled: true },
  modules: ['@nuxt/icon']
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions