Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

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

Open
arishojaei opened this issue Sep 10, 2021 · 0 comments
Open

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

arishojaei opened this issue Sep 10, 2021 · 0 comments

Comments

@arishojaei
Copy link

arishojaei commented Sep 10, 2021

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_}"
})
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant