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

Errors in unchanged example source code -- reactflow-nextjs-app-router #5

Open
chris-braidwell opened this issue May 20, 2024 · 0 comments

Comments

@chris-braidwell
Copy link

chris-braidwell commented May 20, 2024

  1. I downloaded this repo
  2. cd reactflow-nextjs-app-router
  3. yarn install
  4. view code in VS Code:

Error 1
image
That can be suppressed in VS Code only (not resolved) by preceding with // eslint-disable-next-line @next/next/no-async-client-component. When I run yarn run build, the build fails for the same issue: Type error: Type '{ children: Element; initialNodes: Node[]; initialEdges: Edge[]; }' is not assignable to type 'IntrinsicAttributes & { children?: ReactNode; }'. Property 'initialNodes' does not exist on type 'IntrinsicAttributes & { children?: ReactNode; }'.

Error 2
image
I haven't found a fix. This is likely a React 18 types issue. It would be helpful to know how you've solved it, if you have.

Error 3
image
This can be suppressed (not resolved) by preceding each size: line with // @ts-ignore TS2322.


Errors 2 and 3 are nuisance -- can be suppressed to reduce IDE noise, although that's not as safe as possible.

However error 1 prevents the app from being built. It can be run via yarn run dev, but yarn run build fails.

May matter -- I'm running Node v21.7.1. Note the repo doesn't specify what Node version to use.

See related #6.

@chris-braidwell chris-braidwell changed the title Errors upon viewing unchanged example source code Errors upon viewing unchanged example source code -- reactflow-nextjs-app-router May 20, 2024
@chris-braidwell chris-braidwell changed the title Errors upon viewing unchanged example source code -- reactflow-nextjs-app-router Errors in unchanged example source code -- reactflow-nextjs-app-router May 20, 2024
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