-
-
Notifications
You must be signed in to change notification settings - Fork 446
Cannot find prop, when prop has a validator. #93
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
Comments
Hi @MatthijsBe, I think this is defineComponent problem, you can try this:
|
@johnsoncodehk Thanks it's working, closing this issue :) |
@johnsoncodehk is there no better way to solve this besides having to manually add I spent almost half a day looking for why Do you have ideas for a better solution for this? I'm afraid people who wanna host components on NPM and add type info on the props via |
Hi,
Just switched to volar, and so far I love it 💯.
But I got a strange error: inside an v-if I check the value of a prop, but volar will say: Cannot find name 'selectionVariant'"
the prop looks like this:
But when I remove the validator, the error is gone.
The text was updated successfully, but these errors were encountered: