You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to use this plugin in dev mode it works just fine, but if I try to build and run it in prod mode i get The validator 'default' must be a function.
This error appeared after the 4.11.4 update
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
[nuxt] [request error] [unhandled] [500] Extension Error: The validator 'default' must be a function.
at async eval (./server/chunks/handlers/renderer.mjs:46:22)
at async Object.eval [as handler] (./server/chunks/nitro/node-server.mjs:2177:19)
at async Server.toNodeHandle (./server/chunks/nitro/node-server.mjs:2366:7)
Seems like the production build isn't handling default and named exports at the same time. Will be a breaking change but I will tag it in the next patch release.
What happened?
I have a nuxt plugin to import all the
@vee-validate/rules
When I try to use this plugin in dev mode it works just fine, but if I try to build and run it in prod mode i get
The validator 'default' must be a function.
This error appeared after the 4.11.4 update
Reproduction steps
No response
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
Demo link
https://stackblitz.com/edit/nuxt-starter-fkj1dc?file=plugins%2Fvee-validate.js
Code of Conduct
The text was updated successfully, but these errors were encountered: