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
Hi, we've been struggling with this issue for a while now.
We have a custom component library built using shadcn-vue and thus using vee-validate as a dependency for the input fields etc.
Vee-validate is added as a peer dependency in the comp lib.
When we add the lib in another project, we need to have vee-validate as a dependency as well to be able to use FormField etc.
However, this results in a breaking error which appears because Field Context is undefined (useFormField should be used within <FormField>).
I'm thinking this has something to do with having two symbols maybe?
The vee-validate versions are the same. It works when I export the entire vee-validate lib from our custom lib, however that isn't really the cleanest solution.
Happy to share more info if need and would appreciate any help with this, thanks!
The text was updated successfully, but these errors were encountered:
Hi, we've been struggling with this issue for a while now.
We have a custom component library built using shadcn-vue and thus using vee-validate as a dependency for the input fields etc.
Vee-validate is added as a peer dependency in the comp lib.
When we add the lib in another project, we need to have vee-validate as a dependency as well to be able to use FormField etc.
However, this results in a breaking error which appears because Field Context is undefined (
useFormField should be used within <FormField>
).I'm thinking this has something to do with having two symbols maybe?
The vee-validate versions are the same. It works when I export the entire vee-validate lib from our custom lib, however that isn't really the cleanest solution.
Happy to share more info if need and would appreciate any help with this, thanks!
The text was updated successfully, but these errors were encountered: