Socket.io should probably ESM export "Server" #4499
-
Line 1002 in 945c84b I think the ESM export should include Server too? It seems like it's only exported with the CommonJS. Some modern frameworks may not work well with the mixed CJS / ESM exports, and may throw an error when trying to Related issue: https://github.com/richardeschloss/nuxt-socket-io/issues/278 I appreciate your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! The Line 102 in 945c84b But there might be an issue in the underlying |
Beta Was this translation helpful? Give feedback.
Hi! The
Server
class is actually exported:socket.io/lib/index.ts
Line 102 in 945c84b
But there might be an issue in the underlying
engine.io
package: socketio/engine.io#657