Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

yenniSuresh/vee-validate-v3-vue3

Repository files navigation

vee-validate-v3-vue3

A Vue 3 compatible port of vee-validate v3.
This package allows developers to continue using vee-validate v3 without breaking changes while upgrading to Vue 3.


✨ Why use this package?

The official vee-validate v4 introduced significant breaking changes and a complete API overhaul.
If you're migrating a large codebase from Vue 2 to Vue 3 and rely on vee-validate v3, this package:

  • Lets you migrate to Vue 3 without rewriting your validation logic
  • Retains existing components and validation rules
  • Ensures compatibility with modern Vue 3 setups

πŸ“¦ Installation

npm install vee-validate-v3-vue3

πŸ”§ Usage

Global Registration

import Vue from 'vue';
import { ValidationProvider, ValidationObserver, extend } from 'vee-validate-v3-vue3';
Vue.component('ValidationProvider', ValidationProvider);
Vue.component('ValidationObserver', ValidationObserver);

Rule Usage

import { required, email } from 'vee-validate-v3-vue3/dist/rules';
extend('required', required);
extend('email', email);

🌐 CDN

<script src="https://unpkg.com/vee-validate-v3-vue3/dist/vee-validate.min.js"></script>

You can access the components as global variables:

const { ValidationProvider, ValidationObserver } = VeeValidate;

βœ… Compatibility

  • βœ… Vue 3.x
  • ❌ Not compatible with Vue 2
  • βœ… Fully backward-compatible with vee-validate v3 API

πŸ“ Folder Structure

  • dist/ - CJS, ESM, and UMD bundles
  • dist/rules/ - Individual validation rules (same as v3)

πŸ› οΈ Development

Clone the repo and run:

npm install
npm run build

πŸ“’ Note

This is a community-maintained package to help developers avoid rewriting their vee-validate v3 code while adopting Vue 3.

This has worked perfectly for 10 months for me so decided to publish this as package.


πŸ“ƒ License

MIT

About

A Vue3 compatible port of the original vee-validate Vue2 codebase

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /