"stream/web is an experimental feature" warning on Node 16.5.0
See original GitHub issueIt 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
node --trace-warnings index.js
(node:17390) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
at emitExperimentalWarning (node:internal/util:205:11)
at node:stream/web:7:1
at NativeModule.compileForInternalLoader (node:internal/bootstrap/loaders:312:7)
at NativeModule.compileForPublicLoader (node:internal/bootstrap/loaders:252:10)
at loadNativeModule (node:internal/modules/cjs/helpers:40:9)
at Function.Module._load (node:internal/modules/cjs/loader:798:15)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:93:18)
at Object.<anonymous> (/.../test/node_modules/fetch-blob/streams.cjs:7:31)
at Module._compile (node:internal/modules/cjs/loader:1095:14)
Reproduction
Steps to reproduce the behavior:
Create a index.js file:
import fetch from "node-fetch";
package.json:
{
"name": "test",
"type": "module",
"dependencies": {
"node-fetch": "^3.0.0"
}
}
Expected behavior
Warning shouldn’t display.
Your Environment
software | version |
---|---|
node-fetch | 3.0.0 |
node | 16.5.0 |
npm | 7.19.1 |
Operating System | Linux |
Additional context
Issue Analytics
- State:
- Created 2 years ago
- Comments:9
Top Results From Across the Web
How take out "Warning: This is an experimental feature and ...
Setting the protocol in the launch configuration is telling visual studio code which debugger to use. The original debugger can be specified ...
Read more >Node v16.5.0 (Current)
While it is experimental, the API is not exposed on the global object and is only accessible using the new stream/web core module:...
Read more >My Discord Bot doesnt work - The freeCodeCamp Forum
Hint: hit control+c anytime to enter REPL. (node:1005) ExperimentalWarning: stream/web is an experimental feature. This feature could change at ...
Read more >Download & Update Node.js to the Latest Version! Node v19 ...
Web Streams API (experimental): Node.js now exposes the experimental implementation of the Web Streams API on the global scope.
Read more >A Comparison of Node.js Environment Managers
For example, one greenfield project might require the latest version of Node.js due to its use of an experimental feature, while a legacy ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
you can ignore it with
--no-warning
flag if u like.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.