Skip to content
Discussion options

You must be logged in to vote

I solved the problem by re-exporting the complete react-hook-form lib with: export * from "react-hook-form", adjusting my tsconfig so the types would get picked up: "include": [ "src", "node_modules/react-hook-form" ] and then removing the react-hook-form lib from my main project and importing useWatch from my package instead of react-hook-form

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@BjoernRave
Comment options

@leapful
Comment options

leapful Mar 26, 2023
Collaborator

@BjoernRave
Comment options

@minlare
Comment options

@JRoman2018
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by BjoernRave
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
5 participants