-
Notifications
You must be signed in to change notification settings - Fork 668
Type error with functional component #1781
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
Labels
Comments
versions vue: 2.6.12 |
Primarily a typing issue, correct? The types here are really not idea; both Vue 2 and the types here are written manually, so they have some problems. Are you interested in submitting a PR to fix this? I am guessing the work around for issue 2 is something like |
yshrsmz
added a commit
to yshrsmz/vue-test-utils
that referenced
this issue
Feb 15, 2021
add mount & shallowMount type definitions for ExtendedVue, return type of Vue.extend() method this fixes vuejs#1781
13 tasks
yshrsmz
added a commit
to yshrsmz/vue-test-utils
that referenced
this issue
Feb 15, 2021
add mount & shallowMount type definitions for ExtendedVue, return type of Vue.extend() method this fixes vuejs#1781
lmiller1990
pushed a commit
that referenced
this issue
Feb 24, 2021
add mount & shallowMount type definitions for ExtendedVue, return type of Vue.extend() method this fixes #1781
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subject of the issue
Describe your issue here.
Wrapper
andmount
/shallowMount
do not support functional components defined withVue.extend()
Steps to reproduce
Tell us how to reproduce this issue. Please provide a working and simplified example.
Error 1
Error 2
Expected behaviour
It should compile and work fine without any error.
Actual behaviour
descried above.
Possible Solution
When I change
let wrapper: Wrapper<Test>
tolet wrapper: Wrapper<typeof Test>
, it then shows a different error.It seems like
mount
andshallowMount
methods work with functional components withoutVue.extend()
, but does not withVue.extend()
The text was updated successfully, but these errors were encountered: