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.
Can you please reproduce it in a fiddle, so I can see what we are dealing with? the information you provided is not sufficient to debug this.
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
<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"/>
The validator mixin applies a mounted hook, I will investigate the issue and report back.
@shawjak3 Can't seem to reproduce the issue with the code you provided, if you can reproduce it in a fiddle it will be easier to test and fix.
@logaretm Here is the fiddle: https://jsfiddle.net/shawjak3/Lmchtxd7/4/
The mounted hook error is there and if you click in each field and leave it you will see that only the first one applies the data-vv-as name correctly.
This issue has been already resolved here #462 , but not released yet. The issue happens because of the field names include dots in them.
I will try to release the next version in a couple of days.
Here is a version of the last built files:
Awesome thank you! I love the library so far