-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Vue plugin types and imports #1267
Comments
Don't post your whole project as a reproduction... At the very least, post the code snippet you are trying to do... Take a look at how the router or vuex do it until docs are published: https://github.com/vuejs/vue-router-next/blob/master/src/install.ts#L67 and https://github.com/vuejs/vue-router-next/blob/master/src/router.ts#L156 |
@posva
Please advise ... |
Third party libraries need an upgrade yes. Most of them have already started |
Version
3.0.0-beta.14
Reproduction link
https://github.com/josh-hemphill/tooltracker.js
Steps to reproduce
Create a plugin for a typescript project
What is expected?
export a valid plugin object
What is actually happening?
typescript type checks throw that the types are not assignable to type Plugin_2
Has the api changed for creating plugins? I couldn't find where Plugin_2 is in the code.
I couldn't figure out how to create a typescript Vue3 project in CodeSandbox so I linked my repo, which is mostly the default setup created with vue-cli-plugin-vue-next.
The text was updated successfully, but these errors were encountered: