Skip to content

Aliased Components should not be auto imported #854

@dparish

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.

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy