So I’m trying to use react-hook-forms (Get Started) and am using
{…register(inputName)} to register each input. It works fine locally when I run ntl dev, but when I try to build on netlify I keep getting a WebpackError: TypeError: register is not a function error. Any idea what I might be doing wrong?
Sorry you are having trouble getting your forms to work.
This Support Guide is the first port of call to debug any forms issues. There are also many other Support Guides for forms - you can find them here: #Netlify-support:support-guides
We also recommend trying to search the forums or look at topics tagged Netlify forms if you haven’t already - it’s likely your question was already asked by someone else!
If you are still having problems, please provide the following information (this is in the above Support Guide as well):
The URL for your live form as you want visitors to use it
The URL of your deployed html form. In case you have a javascript form, we need to literally be linked to the html version you’ve deployed, as mentioned above (look for “ pure javascript form ”)
The form name that you’ve set and that shows in our UI
Any errors or logs from the Netlify build logs, dashboard or browser developer console
Description of anything you have tried that did or didn’t help or make things better/worse
Hey @ghughes139,
Those errors aren’t thrown by our forms processing- it seems like a Webpack error. Wanna take a look at these Gatsby debugging docs (maybe #3 and #4?) and see if they help unblock you? Debugging HTML Builds | Gatsby