We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use nuxt3 and install vee-validate with pnpm add @veevalidate/nuxt
pnpm add @veevalidate/nuxt
I want to use Composition API (because I use 3rd party UI library). and I following example in https://vee-validate.logaretm.com/v4/.
when i try to use defineField,
const {values, defineField} = useForm();
it return error
Property 'defineField' does not exist on type 'FormContext<GenericObject, GenericObject>'.
can somebody explain why?
Vue.js 3.x and vee-validate 4.x
[{ "resource": "/home/ahmaruff/work/waktoo/fe/ecomm-fe/.app/pages/auth/login.vue", "owner": "_generated_diagnostic_collection_name_#0", "code": "2339", "severity": 8, "message": "Property 'defineField' does not exist on type 'FormContext<GenericObject, GenericObject>'.", "source": "ts", "startLineNumber": 14, "startColumn": 9, "endLineNumber": 14, "endColumn": 20 }]
The text was updated successfully, but these errors were encountered:
Having the same problem. @logaretm
On "vee-validate": "4.6.7",
Also using Nuxt3 with Vuetify.
Following vee-validate composition api documentation. Can't use defineField when const '{ errors, handleSubmit, defineField } = useForm();'
UPDATE: I fixed this by update "vee-validate" to v 4.12.7. @ahmaruff
Sorry, something went wrong.
Depends on the release version, thanks @AidosMarcos for the update.
No branches or pull requests
What happened?
I use nuxt3 and install vee-validate with
pnpm add @veevalidate/nuxt
I want to use Composition API (because I use 3rd party UI library). and I following example in https://vee-validate.logaretm.com/v4/.
when i try to use defineField,
it return error
Property 'defineField' does not exist on type 'FormContext<GenericObject, GenericObject>'.
can somebody explain why?
Reproduction steps
const {values, defineField} = useForm();
...
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
Demo link
Code of Conduct
The text was updated successfully, but these errors were encountered: