Vetur does not recognize validations from Vuelidate
See original GitHub issue- Platform: Win
- Vetur version: 0.24.0
- VS Code version: 1.46.0
Problem
I can compile my code but it sucks to have this Vetur message. How can I disable it?
This is the entire error message:
No overload matches this call.
The last overload gave the following error.
Argument of type '{ created(): void; data(this: CombinedVueInstance<Vue, unknown, unknown, unknown, Readonly<Record<never, any>>>): { sObjectDefinition: { name: string; label: string; ... 14 more ...; deploymentStatus: string; }; creatingCustomObject: boolean; }; watch: { ...; }; methods: { ...; }; validations: {}; }' is not assignable to parameter of type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>>'.
Object literal may only specify known properties, and 'validations' does not exist in type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<...>>'.Vetur(2769)
Reproducible Case
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
How can I resolve Vetur/Vuelidate error "'validate' does not ...
The solution is: run npm install --save-dev @types/vuelidate; restart VSCode.
Read more >Advanced usage - Vuelidate
When using useVuelidate , Vuelidate will collect all validation $errors and $silentErrors from all nested components. No need to pass any props or...
Read more >Getting started | Vuelidate-error-extractor - GitHub Pages
We currently give you 3 out of the box, but you can use your own. messages is the collection of error messages corresponding...
Read more >Vuelidate Validation Messages. Update | by Nicholas Baroni
Vuelidate does a great job at storing form validation state. It has no support for displaying error messages. One other very popular Vue...
Read more >Vuelidate: Effortless Error Messaging | by Chris Mitchell
Vuelidate is a fantastic library for form validation in Vue. ... Full control over how errors are displayed; No knowledge of validation on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Removing node_modules and package-lock.json then reinstalling packages fixed the problem
Same issue. Also installed @types/vuelidate didn’t made thing