Cannot destructure property 'control' of '(0 , react_hook_form__WEBPACK_IMPORTED_MODULE_11__.useFormContext)(...)' as it is null #11206
-
I am using Next.js 13.4.19 (Page Router).
My form is working fine. But failing in build. I tried without destructuring My webpack config in next.config.js
This is the log during the build:
I am hardstuck on this issue. Any help is appreciated. If my problem is not clear in any way kindly let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Is your form component a client component? React Context is not available on the server. |
Beta Was this translation helpful? Give feedback.
Is your form component a client component? React Context is not available on the server.