Skip to content

Vue 3 setup components are Anonymous when imported #1938

@M4thG33k

Description

@M4thG33k

Version

6.2.1

Browser and OS info

Browser: Vivaldi 5.2.2623.48 (Stable channel) stable (64-bit)
OS: Pop!_OS 22.04 LTS

Steps to reproduce

Build a library component using Vue 3, typescript, vite, and the composition api

What is expected?

Components should have their name rendered.

What is actually happening?

All imported components are Anonymous Components in dev tools.


I've noticed that all of my built components have a __name property in the options of the component definition instead of a name property, so maybe updating this line to check for options.__name would fix the issue?

I don't have a reproducible environment at the moment, but I can create one if deemed necessary to progress. Thank you!

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