Skip to content

Module not found: Can't resolve '@rjsf/core' when using simple example from documentation  #1707

@d-malko

Description

@d-malko

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions