Closed Vercuski closed 1 year ago
You probably forgot to give a field a name
prop, either with useField
or <Field />
which would cause this error.
I can't see any fields in your snippet so I can't tell where the problem is coming from. Please recreate the issue in an online sandbox.
You probably forgot to give a field a
name
prop, either withuseField
or<Field />
which would cause this error.I can't see any fields in your snippet so I can't tell where the problem is coming from. Please recreate the issue in an online sandbox.
I had the same issue and, yes, it was because of the missing name
prop. Thank you for pointing that out.
Seems to me this error message could be vastly improved beyond the cryptic message we get today. It's too easy to make that mistake and then your app crashes due to a missing prop.
What happened?
I'm working with Nuxt 3.7.3 and vee-validate 4.11.6. On every page call I am seeing the following console error
The error is happening in the normalizeFormPath function
The issue is that the path is undefined. I'm not entirely sure how the incoming path is undefined on every call. There is a check to see if the path.length after the split is valid and if not just return ''. Would a check if the path is undefined before the path.split be good to put in and return '' as well?
I can provide some more info upon request, I'm just not sure where to begin since this issue is happening on every page and the stack trace doesn't flag any of my code that I can see.
Thank you for your help !
Reproduction steps
yarn add vee-validate
import { Form } from "vee-validate";
Schema
This is only one one page though, the error is happening on every page change. ...
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
Demo link
N/A
Code of Conduct