Skip to content

Wrong component name for folders with dash (-) #738

@KarmaBlackshaw

Description

@KarmaBlackshaw

Describe the bug

When nested component's parent folder has dash (-) it gives off a wrong component name.

RoutedMessagesIdePanel: typeof import('./src/components/routed-messages/RoutedMessagesSidePanel.vue')['default']

Right now, changing the parent folder to routedMessages works

Reproduction

https://stackblitz.com/edit/vitejs-vite-vtvczj?file=components.d.ts

System Info

System:
    OS: Windows 11 10.0.22621
    CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor
    Memory: 12.74 GB / 31.95 GB
  Binaries:
    Node: 16.18.1 - C:\Program Files\nodejs\node.EXE
    npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (121.0.2277.128)
    Internet Explorer: 11.0.22621.1

Used Package Manager

npm

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

    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