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.

Error in mounted hook: "TypeError: this.$scopes[scope][fieldName] is undefined"

See original GitHub issue

Versions:

  • VueJs: v2.3.2
  • Vee-Validate: v2.0.0-rc.2

Description:

My form is defined as follows (code snippet):

<Input name = "user.id">

It will report an error note:

[Vue warn]: Error in mounted hook: "TypeError: this. $ Scopes [scope] [fieldName] is undefined"

but it still can work normally.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shawjak3commented, May 22, 2017

Awesome thank you! I love the library so far

1reaction
shawjak3commented, May 19, 2017

I am also seeing this issue as soon as I add the name attribute or data-vv-name.

Error in mounted hook: (I don’t even have a mounted hook in this component.) Cannot read property 'events' of undefined

  • vue - 2.3.2
  • vee-validate - 2.0.0-rc.3

<textarea v-validate="'required'" data-vv-name="nutriqForm.data.concernOne" data-vv-as="Health Concern 1" class="form-control" placeholder="Health Concern 1" rows="2" v-model="nutriqForm.data.concernOne"/>

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue.js - VueJS - Error in mounted hook: "TypeError: this.$store ...
The full error is [Vue warn]: Error in mounted hook: "TypeError: this.$store is undefined" . I've even got it narrowed down to a...
Read more >
Error in mounted hook: "TypeError: Cannot read property '$el ...
It looks like this is not correctly defined in mounted hook. ... in mounted hook: "TypeError: Cannot read property '$el' of undefined" #107....
Read more >
Error in mounted hook: "TypeError: message is undefined"
I have an issue with FormValidator. I have this error in the console : Error in mounted hook: "TypeError: message is undefined".
Read more >
error in mounted hook: "typeerror: cannot read properties of ...
Here's an example of a JavaScript TypeError: Cannot read property of undefined thrown when a property is attempted to be read on an...
Read more >
[Vue warn]: Error in created hook: (found in <CheckoutForm ...
[Vue warn]: Error in created hook: (found in <CheckoutForm>) TypeError: Cannot read property 'email' of undefined. Hey :).
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