-
-
Notifications
You must be signed in to change notification settings - Fork 797
Closed
Description
Steps to reproduce
I created a new V5 app and it installed normally.
when I ran it with npm run dev it ran normally
but crashed when ran with npm run start with the following error
> shx rm -rf lib/ && tsc
node_modules/socket.io/dist/namespace.d.ts:14:133 - error TS2344: Type 'ListenEvents' does not satisfy the constraint 'EventsMap'.
14 export interface ServerReservedEventsMap<ListenEvents, EmitEvents, ServerSideEvents, SocketData> extends NamespaceReservedEventsMap<ListenEvents, EmitEvents, ServerSideEvents, SocketData> {
~~~~~~~~~~~~
node_modules/socket.io/dist/namespace.d.ts:14:42
14 export interface ServerReservedEventsMap<ListenEvents, EmitEvents, ServerSideEvents, SocketData> extends NamespaceReservedEventsMap<ListenEvents, EmitEvents, ServerSideEvents, SocketData> {
~~~~~~~~~~~~
This type parameter might need an `extends EventsMap` constraint.
node_modules/socket.io/dist/namespace.d.ts:15:42 - error TS2344: Type 'ListenEvents' does not satisfy the constraint 'EventsMap'.
15 new_namespace: (namespace: Namespace<ListenEvents, EmitEvents, ServerSideEvents, SocketData>) => void;
~~~~~~~~~~~~
node_modules/socket.io/dist/namespace.d.ts:14:42
14 export interface ServerReservedEventsMap<ListenEvents, EmitEvents, ServerSideEvents, SocketData> extends NamespaceReservedEventsMap<ListenEvents, EmitEvents, ServerSideEvents, SocketData> {
~~~~~~~~~~~~
This type parameter might need an `extends EventsMap` constraint.
Found 2 errors in the same file, starting at: node_modules/socket.io/dist/namespace.d.ts:14
System configuration
Module versions (especially the part that's not working): "^5.0.0-pre.28"
NodeJS version: v18.4.0
Operating System: Manjaro
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels