Skip to content

Components with three consecutive uppercase letters are discovered wrongly #127

@TheAlexLichter

Description

@TheAlexLichter

Describe the bug
Imagining having a component called HLViewer.vue in your code base. I was expecting to use it as <HLViewer/> in my project. Unfortunately, only <HlViewer /> (with a lowercase l) is available.

If this is intended (or at least a smaller pain than alternatives) I'd suggest adding a note in the docs, possibly in a caveats section.

To Reproduce
Steps to reproduce the behavior:

  1. yarn create nuxt-app rm-test-components
  2. Select whatever you like
  3. Create a new component, e.g. ABCde.vue
  4. Add it to a page as <ABCde>
  5. See "not defined" error in the console

Expected behavior
Component is registered correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions