Prerequisites
Description
import Form from 'react-jsonschema-form' breaks app.
Steps to Reproduce
- Initialize new project with create-react-app
- Install
react-jsonschema-form dependency and use it in the project.
- Build/run app (
npm start), open in browser to see error: `
Demo project available here: https://github.com/sirreal/broken-react-jsonschema-form
Relevant file: https://github.com/sirreal/broken-react-jsonschema-form/blob/master/src/App.js
The code is copied nearly verbatim from documentation:
import Form from "react-jsonschema-form";
const schema = {
title: "Todo",
type: "object",
required: ["title"],
properties: {
title: {type: "string", title: "Title", default: "A new task"},
done: {type: "boolean", title: "Done?", default: false}
}
};
/* ... render() ... */
<Form schema={schema}
onChange={log("changed")}
onSubmit={log("submitted")}
onError={log("errors")}
/>
/* ... */
Expected behavior
See <Form /> component rendered
Actual behavior
App crashes with error:
browser.js:173 Uncaught Error: process.binding is not supported
Version
break-react-jsonschema-form@0.1.0
├── react@15.3.1
├── react-dom@15.3.1
├── react-jsonschema-form@0.40.0
└─┬ react-scripts@0.4.1
└── webpack@1.13.2
Prerequisites
Description
import Form from 'react-jsonschema-form'breaks app.Steps to Reproduce
react-jsonschema-formdependency and use it in the project.npm start), open in browser to see error: `Demo project available here: https://github.com/sirreal/broken-react-jsonschema-form
Relevant file: https://github.com/sirreal/broken-react-jsonschema-form/blob/master/src/App.js
The code is copied nearly verbatim from documentation:
Expected behavior
See
<Form />component renderedActual behavior
App crashes with error:
Version