-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
modelValue required prop warning despite usage of v-model #2647
Comments
Do your |
This is still a problem when a component defines both "value" and "modelValue" props. If I read the code correctly, the problem is coming from this line: https://github.com/vuejs/vetur/blame/78171ae446a71982708556b3950f08cc4dd0bd01/server/src/modes/script/componentInfo.ts#L342 I would make a PR, but don't have much time atm, hopefully someone can pick it up |
Algúnos años después, pero por si alguién tiene el problema. Esto se soluciona simplemente añadiendo el v-model="" de primer propiedad en la etiqueta que se este trabajando. Saludos! |
Vetur: Restart VLS
Info
Problem
The
modelValue
prop is marked asrequired
in myBaseInput
component. Despite using thev-model
directive, Vetur displays an error thatmodelValue
is required and isn't used:Reproducible Case
TODO
The text was updated successfully, but these errors were encountered: