-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Prerequisites
- I have read the documentation.
Description
import Form from 'react-jsonschema-form' breaks app.
Steps to Reproduce
- Initialize new project with create-react-app
- Install
react-jsonschema-formdependency 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
[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└─┬ [email protected]
└── [email protected]
node --version
v6.5.0
npm --version
3.10.7
Metadata
Metadata
Assignees
Labels
No labels