We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to use the following:
import React, {Component, PropTypes} from 'react'; 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} } }; class MyForm extends Component { static propTypes = {} constructor(props) { super(props); } onFormChange() {} onFormSubmit() {} onFormError() {} render() { return ( <Form schema={schema} onChange={this.onFormChange} onSubmit={this.onFormSubmit} onError={this.onFormError} /> ); } } export default MyForm;
but getting this error: Uncaught Error: Cannot find module './components/fields/SchemaField'
Uncaught Error: Cannot find module './components/fields/SchemaField'
Inspecting the code, it appears the load helper is unable to find the modules:
load
var load = function load(prefix, arr) { return arr.reduce(function (obj, comp) { obj[comp] = require("./components/" + prefix + "/" + comp).default; return obj; }, {}); };
Is this library only intended to work server-side?
The text was updated successfully, but these errors were encountered:
Is this related to #385/#387?
Sorry, something went wrong.
Yeah, most probably. I'm closing this as the fix has landed.
Yep you're right, sorry I missed those!
No branches or pull requests
Trying to use the following:
but getting this error:
Uncaught Error: Cannot find module './components/fields/SchemaField'
Inspecting the code, it appears the
load
helper is unable to find the modules:Is this library only intended to work server-side?
The text was updated successfully, but these errors were encountered: