Open aescarcha opened 6 years ago
stream
is a default nodejs module, like you could see at https://nodejs.org/docs/latest/api/stream.html
I think it's your nodejs interpreter that miss it.
It looks like the issue is Angular6-specific, as you can see here . The best solution is using readable-stream
instead of stream
.
From readable-stream README:
If you want to guarantee a stable streams base, regardless of what version of Node you, or the users of your libraries are using, use readable-stream only and avoid the "stream" module in Node-core, for background see this blogpost.
I had the same issue so far I solved it changing the "require('stream')"
with require('readable-stream')
Is there a way to remove the warning permanently without having to modify sax.js source?? I'm having the same issue on an angular app, although it's just a warning and it's working fine, but the warning is a bit annoying
Also had this problem and changed to require('readable-stream')
in the source and it still worked without errors.
Same issue with Angular app
If you're on Angular App, this is how I solve it:
npm install stream-browserify
"compilerOptions": {
...
"paths": {
...
"stream": ["node_modules/stream-browserify"],
}
}
I found out some people had the same issue with timers, so do the same with timers
and timers-browserify
.
Hope it helps.
When installing through NPM and running with webpack I get the following warning:
I think the issue happens when Sax requires
stream
in this lineDoing an
npm install stream
solved the error for me, so adding it to thepackage.json
dependencies should solve it too.To reproduce this install a new Angular enviroment and
npm i angular-dashjs-player