Open Uleertel opened 1 month ago
Not sure when it was changed, but now instead of:
import * as rules from '@vee-validate/rules';
you have to do:
import { all as rules } from '@vee-validate/rules';
Thanks it seems to do the trick. I hope someone from the project will see this and update the npm page.
What happened?
I have a vuejs 3.4 application currently using vee-validate & vee-validate/rules libraries in version 4.12.8. I tried to update these libraries to the latest 4.13.2 but when loading the application I have an error in the brother : "Error: Extension Error: The validator 'all' must be a function."
The error is happening when I'm loading all the rules as explained on the npm page https://www.npmjs.com/package/@vee-validate/rules with the following code :
Reproduction steps
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
couldn't make codesandbox work...
Code of Conduct