question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vetur does not recognize validations from Vuelidate

See original GitHub issue
  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • Platform: Win
  • Vetur version: 0.24.0
  • VS Code version: 1.46.0

Problem

image

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Snitovetscommented, Jun 18, 2021

Removing node_modules and package-lock.json then reinstalling packages fixed the problem

0reactions
Snitovetscommented, Jun 18, 2021

Same issue. Also installed @types/vuelidate didn’t made thing

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found