npm i @vee-validate/nuxt
You will also need a library that will be used to perform validation.
Since vee-validate
supports zod
, yup
, valibot
and joi
, you can choose any of these libraries to perform validation.
npm i zod @vee-validate/zod
npm i yup @vee-validate/yup
npm i valibot @vee-validate/valibot
npm i joi @vee-validate/joi
After that, we will need to add the @vee-validate/nuxt
module to our nuxt.config.js
file.
export default defineNuxtConfig({
//...
modules: ["@vee-validate/nuxt"],
//...
});