Skip to content

Aliased Components should not be auto imported #854

Description

@dparish

Describe the bug

We are using aliased components per: https://vuetifyjs.com/en/features/aliasing/#virtual-component-defaults

In our example ours looks like this:

  aliases: {
    VSecondaryBtn: VBtn,
    VLayeredAvatar: VAvatar,
    ....
  },
 defaults: {
    VLayeredAvatar: {
      class: ['layered-avatar'],
      color: 'brand-100',
      size: 'large'
    },
}

the problem is when the resolver finds v-layered-avatar it creates this in the generated components.d.ts file

    VLayeredAvatar: typeof import('vuetify/components')['VLayeredAvatar']

Which of course doesn't work....

Reproduction

See code above

System Info

System:
    OS: macOS 15.5
    CPU: (12) arm64 Apple M3 Pro
    Memory: 614.14 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.6.1 - /opt/homebrew/bin/node
    npm: 10.9.2 - /opt/homebrew/bin/npm
    pnpm: 10.1.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 138.0.7204.93
    Safari: 18.5

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions