Skip to content

[TypeScript] Default export of the module has or is using private name 'VueConstructor' #6999

Closed
@gluons

Description

@gluons

Version

2.5.3

Reproduction link

https://github.com/gluons/vue-issue-6999

Steps to reproduce

  • Export some object that contain Vue or typeof Vue types.
  • Set compilerOptions -> declaration to true

What is expected?

Able to build without error.

It should be able to export plugin/library with TypeScript declaration.

What is actually happening?

Default export of the module has or is using private name 'VueConstructor' happened when built it.


I'm developing Vue component with TypeScript.
I also need TypeScript to generate declaration for other TypeScript developer (And also JavaScript with Vetur 🙂).
But I face this error. 😢

Thanks bbuchanan for the cause.

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