Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Mar 31, 2024 · 0 comments

Comments

@dmoore247
Copy link

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 DefinitelyTyped/DefinitelyTyped#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant