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

Missing prop 'children' in type of SocketIOProvider #85

Open
filipjnc opened this issue Jan 3, 2023 · 0 comments
Open

Missing prop 'children' in type of SocketIOProvider #85

filipjnc opened this issue Jan 3, 2023 · 0 comments

Comments

@filipjnc
Copy link

filipjnc commented Jan 3, 2023

I set up the socket.io hook according to the docs and get a type error on the SocketIOProvider:

Type '{ children: Element; url: string; }' is not assignable to type 'IntrinsicAttributes & ISocketIOProviderProps'.
  Property 'children' does not exist on type 'IntrinsicAttributes & ISocketIOProviderProps'.

The SocketIOProvider is supposed to wrap other JSX elements in _app.tsx, so it should accept the 'children' property, but it doesn't. Obviously TypeScript complains about it.

@filipjnc filipjnc changed the title Missing 'children' in type of SocketIOProvider Missing prop 'children' in type of SocketIOProvider Jan 3, 2023
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