node-ssestream
node-ssestream copied to clipboard
TypeError: SseStream is not a constructor
SseStream = require('ssestream')
console.info(SseStream)
new SseStream()
{ default: [Function: SseStream] } TypeError: SseStream is not a constructor
I observe the same problem.
Solution: rollback to "ssestream": "^1.0.1", this one is broken.
Solution: rollback to "ssestream": "^1.0.1", this one is broken.
It's useless.
Just use this in the code :
const SseStream = require('ssestream').default;