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.

Type error, UseVuelidate() is Ref<undefined>

See original GitHub issue

Describe the bug UseValidate() is an undefined type, making TypeScript choke.

Reproduction URL https://codesandbox.io/s/red-mountain-2iu82?file=/src/App.vue:700-921

To Reproduce App.vue:6 - v$.$validate() is accessible within template tag App.vue:31 - v$.$validate() within script tag has a type error Property '$validate' does not exist on type 'Ref<undefined>'

Expected behavior All type information being accessible - $validate, $errors, $touch, etc.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
dobromir-hristovcommented, Jan 17, 2022

Should be out already. Try to upgrade

1reaction
RollingTLcommented, Mar 24, 2022

After last update the problem is gone. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught (in promise) TypeError: Cannot read properties of ...
Fixed by uninstalling and reinstalling vuelidate.
Read more >
Advanced usage - Vuelidate
useVuelidate returns a computed , so you need to use .value when accessing any of it's properties, like $error , $validate inside the...
Read more >
was accessed during render but is not defined on instance. at ...
I realize now that the error message is a little counterintuitive. (I think) The variable responseType was being read because the variable app...
Read more >
Vuelidate | A Vue.js model validation library
If you want to use Vuelidate with Vue 3, use the Vuelidate Next version. ... Any markup relating to validation errors will show...
Read more >
Cannot read property '$model' of undefined - Vuelidate
TypeError : Cannot read property '$model' of undefined - Vuelidate ... minLength } from 'vuelidate/lib/validators' export default { data() { return { title: ......
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