projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.45k stars 1.16k forks source link

Bug: running `diagrams-demo-project` error `TS2345: Argument of type 'Element' is not assignable to parameter of type 'ReactNode'. Property 'children' is missing in type 'Element' but required in type 'ReactPortal'.` #1032

Open dmoore247 opened 3 months ago

dmoore247 commented 3 months ago

Following:

git clone ....
cd react-diagrams
pnpm install 
pnpm build

cd diagrams-demo-project
pnpm install
pnpm run start

then receive error (Which is similar https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/66754)

react-diagrams/diagrams-demo-project/src/main.tsx(43,14)
      TS2345: Argument of type 'Element' is not assignable to parameter of type 'ReactNode'.
  Property 'children' is missing in type 'Element' but required in type 'ReactPortal'.

and browser opens. Same error; close error panel (x), then functioning demo project appears

I'm a yarn/npm/pnpm/react noob, but I've been able to get other flowchart react programs to run.