Skip to content

'No such validator' when using defineComponent setup syntax #4906

@readio

Description

@readio

What happened?

We have just updated to the latest @vee-validate/nuxt, version 4.14.3.

We are now getting an error Uncaught (in promise) Error: No such validator 'required' exists.

After some investigation it appears that this happens when using the defineComponent setup, instead of <script setup>

I have included a link to stackblitz to replicate this.

Reproduction steps

No response

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari
  • Microsoft Edge

Relevant log output

No response

Demo link

https://stackblitz.com/edit/nuxt-starter-kgmsew?file=pages%2Findex.vue

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugUnintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions