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
Issue: When using remix-hook-form in a server-rendered environment (e.g., with Remix on Node.js), a ReferenceError occurs due to an undefined FileList. Since FileList is specific to the browser, referencing it directly in non-browser environments results in the following error:
if (value instanceof FileList) {
^
ReferenceError: FileList is not defined
at createFormData
This issue prevents remix-hook-form from being used in server-side contexts, limiting its compatibility in Remix applications.
The text was updated successfully, but these errors were encountered:
sid10297
changed the title
FileList Reference Error in Non-Browser Environments with remix-hook-form
FileList Reference Error with remix-hook-form
Nov 7, 2024
Issue: When using remix-hook-form in a server-rendered environment (e.g., with Remix on Node.js), a ReferenceError occurs due to an undefined FileList. Since FileList is specific to the browser, referencing it directly in non-browser environments results in the following error:
This issue prevents remix-hook-form from being used in server-side contexts, limiting its compatibility in Remix applications.
Environment:
@remix-run/react: 2.7.1
remix-hook-form: 5.1.1
react-hook-form: 7.53.1
The text was updated successfully, but these errors were encountered: