Closed gwsounddsg closed 3 years ago
Had pretty much the same issues but after hard digging I could solve it. Here the dependencies which worked for me:
"@emotion/core": "10.1.1",
"@emotion/react": "10.0.0",
"@emotion/styled": "10.0.0",
"@projectstorm/react-canvas-core": "6.3.0",
"@projectstorm/react-diagrams": "6.3.0",
"closest": "0.0.1",
"dagre": "0.8.5",
"pathfinding": "0.4.18",
"paths-js": "0.4.11",
"resize-observer-polyfill": "1.5.1",
So, oddly enough, after getting this error for a while I came back the next day and it just started working without me changing anything. I'm wondering if there was just a ts compiler error and I needed to restart VS Code.
TLDR;
Built the Getting Started project. Running
yarn start
produces the following error:Steps that got me here
npx create-react-app app-name --template typescript
yarn add @projectstorm/react-diagrams
@emotion/core
and@emotion/react
to use version 10 instead of 11.yarn start
= Error'@projectstorm/react-canvas-core' should be listed in the project's dependencies
and tried runningyarn add @projectstorm/react-canvas-core
even though it was already installed but not listed inpackage.json
under dependencies.Note
I saw in issue #506 basically the same error. It's pointing to the line
import { CanvasWidget } from "@projectstorm/react-canvas-core";
.