- Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Description
I saw issue #1685, maybe this issue related.
Trying to run simple example from the documentation, but faceoff the problem with import issue
Module not found: Can't resolve '@rjsf/core' in '../src/components/Home' Steps to Reproduce
run
npm install react-jsonschema-form --save
import React from "react"; import Form from "@rjsf/core"; 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} } }; const log = (type) => console.log.bind(console, type); export default function Home() { return ( <div> <Form schema={schema} onChange={log("changed")} onSubmit={log("submitted")} onError={log("errors")} /> </div> ); } Actual behavior
import issue
Module not found: Can't resolve '@rjsf/core' in '/containers/fto/src/components/Home' Version
"react-jsonschema-form": "^1.8.1"
Metadata
Metadata
Assignees
Labels
No labels