Skip to content

Script Setup Does Not Populate Name Property #10348

Closed
@incutonez

Description

@incutonez

Vue version

3.4.19

Link to minimal reproduction

https://play.vuejs.org/#eNp9UtuK2zAQ/ZWpKNgBYz/sW5oE2mUfUuiFto+CRWtPHG3lkdElTRv87x3JTXbpXl7M+Jy5nDmjk3g/jvUholiKVcBhNCrgRhLA6toOIzQcr5pHBP/61ukxgMcQRzCK+rUUwUvBrB5G6wLk0p2zA0hRN+kvjZDiXWo2l29ExUWtpZ3u63tviQWc0lwpWs7XBt2XMWhL3HgJmUmcMsb++pix4CJWZ7zdY/vzGfzeHxMmxVeHHt2BRVy4oFyPYaZvvn/GI8cXcrBdNJz9CvkNvTUxaZzTPkTqWPajvKx2mz3R1P/wN8eA5M9LJaEpc8r5UrBFyaqXVn+Qe1Vf5TpJE7t4tvfpBTt9yAHMBynzxRZvMtfM5Gu3fbjnCSx9spECdhWwiOvoHFLYkg+KWoRpPnbBKgq+saSmgS04VEb/QY5aRdBZCHvtK7iLAbZFB06FPToGEUgNCHcImnbInTtQ1CUNqVGHO034z5CS3eDeuWAJRVqrSMi0yGP5OfnAXfizfkZnuahHZ4+/U+plobJcwHoz25zqrcHa2L4ssgdFldvVb+0soE6T/8dubxOaJGQdlycuSUx/AR6AI9U=

Steps to reproduce

Go to the link, open the debugger, and notice that the instance does not have the name property set.

What is expected?

The instance's name property is set.

What is actually happening?

I know that __name gets set, but that's not listed in the docs as something we can use, so it seems like it's an internal, private value that we should not be using.

System Info

Firefox

Any additional comments?

I also know that I can use defineOptions to set the name, but I don't want to have to remember to do this across all my files. This seems like it might be the opposite of #6357

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