Replies: 2 comments 7 replies
-
Hi, just to add to this I have the exact same problem. I've created a brand new Next JS project and installed React Hook Form. I've copied the default example for Hook Form and nothing else and get this error when rendering:
Which then leads to the same error described by OP:
This is driving me crazy as I've got a blank, brand new project with everything up to date and I can't even get the example to render. Any ideas? My package.jsoon is below for reference.
|
Beta Was this translation helpful? Give feedback.
-
Have you made sure your |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I encountered a problem when using React Hook Forms in my Next JS project.
Created a separate file to export the form - LoginForm.tsx
I get an error: Error: (0 , react_hook_form__WEBPACK_IMPORTED_MODULE_1__.useForm) is not a function

I can't figure out what the problem is. Why useForm doesn't work?
I have tried to uninstall the node_modules directory. None of these worked.
Beta Was this translation helpful? Give feedback.
All reactions