nuxt-validate icon indicating copy to clipboard operation
nuxt-validate copied to clipboard

export 'extend' was not found in 'vee-validate'

Open arishojaei opened this issue 2 years ago • 0 comments

I created a file in plugins and added it to nuxt.config but I get export 'extend' was not found in 'vee-validate'


// ~/plugins/validate.js

import { extend } from 'vee-validate'

extend('postCode', (value) => {
  const reg = /^\d+$/
  if (value.length === 10 && reg.test(value)) {
    return true
  }
  return "{_field_}"
})

arishojaei avatar Sep 10 '21 16:09 arishojaei