Skip to content

Unable to resolve module fabricjs-react #69

@Shasikhan

Description

@Shasikhan

I installed fabric js lib in the provided example and this is giving following error.

error: WebApp/index.js: Unable to resolve module fabricjs-react from ...myProject/WebApp/index.js: fabricjs-react could not be found within the project or in these directories:
node_modules

If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules and run yarn install
  3. Reset Metro's cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-*
    12 | // import DesignCanvas from "./DesignCanvas";
    13 | import Rect from "./Rect";

14 | import { FabricJSCanvas, useFabricJSEditor } from "fabricjs-react";
| ^
15 | const style = {
16 | width: "100vw",
17 | height: "100vh",

I checked fabric js js installed and is in node_modules folder.
----Please help.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions