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
Since 1.4.0 I'm now getting this error when trying to create a form
ReferenceError: File is not defined at isObject (/srv/node_modules/react-jsonschema-form/lib/utils.js:325:24) at getDefaultFormState (/srv/node_modules/react-jsonschema-form/lib/utils.js:288:8) at Form.getStateFromProps (/srv/node_modules/react-jsonschema-form/lib/components/Form.js:157:53) at new Form (/srv/node_modules/react-jsonschema-form/lib/components/Form.js:129:25)
I believe this is related the isObject file changes in 1.4.0
1.3.0 works fine
My browser is Chrome 73.0.3683.86 on Mac OS Mojave 10.14
Steps to Reproduce
Update lib to 1.4.0
Create a Form in react with no formData specified or an empty object
The form fails to render with the above error
Note I only observed this in a Next.js app v ^7.0.3
Expected behavior
The form to render correctly. Switching back to 1.3.0 makes the form work as expected.
Actual behavior
The form failed to error and the console showed the aforementioned error
Version
1.4.0
The text was updated successfully, but these errors were encountered:
You might be correct. I first noticed the Errors in my cloud function console (which runs node as the environment). So it's happening there.
I finally saw it in the browser and had to downgrade. However the browser error might have been caused by a crash in the node server powering the site (i.e. it might have been a server crash screen).
I've not seen it in my pure react app so it could be when running on node. Using NodeJs10. Happens on both my local machine and when deployed to Google App Engine.
Prerequisites
Description
Since 1.4.0 I'm now getting this error when trying to create a form
ReferenceError: File is not defined at isObject (/srv/node_modules/react-jsonschema-form/lib/utils.js:325:24) at getDefaultFormState (/srv/node_modules/react-jsonschema-form/lib/utils.js:288:8) at Form.getStateFromProps (/srv/node_modules/react-jsonschema-form/lib/components/Form.js:157:53) at new Form (/srv/node_modules/react-jsonschema-form/lib/components/Form.js:129:25)
I believe this is related the isObject file changes in 1.4.0
1.3.0 works fine
My browser is Chrome 73.0.3683.86 on Mac OS Mojave 10.14
Steps to Reproduce
Expected behavior
The form to render correctly. Switching back to 1.3.0 makes the form work as expected.
Actual behavior
The form failed to error and the console showed the aforementioned error
Version
1.4.0
The text was updated successfully, but these errors were encountered: