-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TypeScript] Default export of the module has or is using private name 'VueConstructor' #6999
Comments
I've made a PR to expose export default {
install: install as PluginFunction<void>
} |
By @ktsn's comment in vuejs/vue#6999.
Version |
@relign Try importing import { VueConstructor } from 'vue';
/* or */
import Vue, { VueConstructor } from 'vue'; // With Vue |
I've opened a request to fix issues like these in TypeScript by bringing declaration files to parity with language features. microsoft/TypeScript#35822 |
Version
2.5.3
Reproduction link
https://github.com/gluons/vue-issue-6999
Steps to reproduce
Vue
ortypeof Vue
types.compilerOptions
->declaration
totrue
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. 😢
The text was updated successfully, but these errors were encountered: