You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
filipjnc
changed the title
Missing 'children' in type of SocketIOProvider
Missing prop 'children' in type of SocketIOProvider
Jan 3, 2023
I set up the socket.io hook according to the docs and get a type error on the SocketIOProvider:
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.
The text was updated successfully, but these errors were encountered: