sse-express icon indicating copy to clipboard operation
sse-express copied to clipboard

TypeError: Cannot read property 'writeHead' of undefined

Open maulberto3 opened this issue 6 years ago • 2 comments

Hi, I am having that issue when using sse-express inside an Express router. The issue says it's present at the node_modules folder. I tried deleting and creating that folder again, but still no luck. Any solution?

maulberto3 avatar Jul 28 '18 04:07 maulberto3

Ran into the same issue, resolved by installing the last version with npm install --save sse-express@next

PymZoR avatar Jul 28 '18 14:07 PymZoR

Hi @PymZoR Fixed. However, the .onmesage method is not working, only by the addEventListener( ). Any ideas why?

maulberto3 avatar Jul 28 '18 16:07 maulberto3