You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here is an example of
Zod
+react-hook-form
:https://github.com/react-hook-form/resolvers?tab=readme-ov-file#zod
In the example above, there are two fields:
name
andage
.I want to add a field that the
type
isfile
, and it hasmultiple
attribute.so I added some code to the original example, the new code is as follow:
app\next-react-hook-form-demo\page.js
I added two pieces of code, as follow:
and
Then I run it in Chrome, it has some errors:
What should I do?
Beta Was this translation helpful? Give feedback.
All reactions