node-ssestream icon indicating copy to clipboard operation
node-ssestream copied to clipboard

TypeError: SseStream is not a constructor

Open leoner opened this issue 5 years ago • 4 comments

SseStream = require('ssestream')

console.info(SseStream)
new SseStream()

{ default: [Function: SseStream] } TypeError: SseStream is not a constructor

leoner avatar Mar 18 '20 02:03 leoner

I observe the same problem.

stiv-yakovenko avatar Apr 02 '20 12:04 stiv-yakovenko

Solution: rollback to "ssestream": "^1.0.1", this one is broken.

stiv-yakovenko avatar Apr 02 '20 12:04 stiv-yakovenko

Solution: rollback to "ssestream": "^1.0.1", this one is broken.

It's useless.

Rickiiii avatar Apr 30 '20 06:04 Rickiiii

Just use this in the code : const SseStream = require('ssestream').default;

rem13s avatar Oct 13 '21 13:10 rem13s