Skip to content

useField not attached to Form when used in package #4132

Answered by logaretm
h-sigma asked this question in Q&A
Discussion options

You must be logged in to vote

I think this because your library and the target app are both having two different vee-validate packages bundled in them. This means both will have different symbols which would prevent injecting stuff like the form context.

This could be solved by you making sure that vee-validate is marked as an external when you bundle your library so it never gets bundled in it. So it would use the project's vee-validate installation instead.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by h-sigma
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants