The requested module does not provide an export named 'PassThrough'
See original GitHub issueCalling fetch gives me the following error
node_modules/node-fetch/lib/index.mjs:1
import Stream, { PassThrough } from 'stream';
^^^^^^^^^^^
SyntaxError: The requested module does not provide an export named 'PassThrough'
Issue Analytics
- State:
- Created 5 years ago
- Reactions:14
- Comments:15
Top Results From Across the Web
Requested module does not provide export named 'default'
To solve the error "The requested module does not provide an export named default", use the `default` keyword when exporting a value from...
Read more >the requested module does not provide an export named
The reason it didn't work is that Vue provides a named export, whereas you are trying to import it as though it had...
Read more >"The requested module ' does not provide an export named ...
I have no control over how the api module is built. How can it work in one case but not another? This is...
Read more >lstm example with node.js, load, and http requests
I had it running in the browser so that it would load a pre-trained model from ... The requested module does not provide...
Read more >Import-Module (Microsoft.PowerShell.Core)
Starting in PowerShell 3.0, installed modules are automatically imported to ... PassThru, or AsCustomObject parameter, Import-Module does not generate any ...
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
The published ESM in
lib/index.mjs
contains this line:Turns out,
PassThrough
is not a named export ofstream
in Node.js v8, but it is in v10:In Node.js v8.12.0:
In Node.js v10.11.0:
also works for me, thx for the fix.