-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"stream/web is an experimental feature" warning on Node 16.5.0 #1280
Comments
The warning comes from fetch-blob We are also going to depend on it eventually in as of now, closing as dupl of node-fetch/fetch-blob#114 |
you can ignore it with |
But that's not a solution when running a script which uses node internally. But even otherwise, this is probably not a good idea given the popularity of node-fetch in scripting. Scripts which were expecting to parse remote data will start failing. |
Sorry to bring this up again. I strongly disagree with the approach of breaking production apps by introducing support for experimental features in a mainline, non-alpha version - this package has 30 million weekly downloads on npm. I saw that a fix has been committed, but that looks a bit like a hack; the correct approach would be to not depend on unstable APIs instead of suppressing warnings. Given the 30m downloads figure, there will be quite a few dependent apps which are console apps. Text is how data gets passed around (piped) between programs, this has broken all of them. In addition to making the output visually ugly. Disclosure: I am the maintainer of bashojs, and this basically breaks my package. I can downgrade, which is what I'll probably do. |
@jeswin why does it break your package? |
Here's a screenshot.
This is just my opinion, but experimental implies unstable. This warning breaks confidence (and it's quite visible to the end-users). |
undici themself also use experimental |
Though I disagree, I understand your points (which you've made here, as well as that on the fetch-blob thread). My scenario works with a downgrade to 2.6 (which I've done), so it doesn't block me or anything. Thanks. |
working on Next.js the problem might be in your _app.js file. |
It looks like the warning below happens on Node 16.5.0. I tried with 14.17.4 and didn't get the warning.
(node:17339) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
Reproduction
Steps to reproduce the behavior:
Create a index.js file:
package.json:
Expected behavior
Warning shouldn't display.
Your Environment
Additional context
The text was updated successfully, but these errors were encountered: