Type error, UseVuelidate() is Ref<undefined>
See original GitHub issueDescribe 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:
- Created 2 years ago
- Reactions:3
- Comments:17 (7 by maintainers)
Top 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 >
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 Free
Top 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
Should be out already. Try to upgrade
After last update the problem is gone. Thanks.