Skip to content

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

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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