node-fetch icon indicating copy to clipboard operation
node-fetch copied to clipboard

node-fetch v3.3.1 Could not load stream-browserify/web: ENOENT: no such file or directory

Open helbing opened this issue 2 years ago • 4 comments

Reproduction

Steps to reproduce the behavior:

You can reproduce with this repo: https://github.com/helbing/node-fetch-issue-1724

Expected behavior

I use node-fetch@2 can build success, but not working in node-fetch@3, I expect it can work.

Screenshots

image

Your Environment

software version
node-fetch v3.3.1
node v18.15.0
npm v9.5.0
Operating System macOS 13.2.1 (22D68)

Additional context

helbing avatar Mar 16 '23 12:03 helbing

are you trying to browserify node-fetch?

node fetch is built for NodeJS just use global fetch instead.

jimmywarting avatar Mar 31 '23 15:03 jimmywarting

are you trying to browserify node-fetch?

node fetch is built for NodeJS just use global fetch instead.

It's work for an SSR service. It can build success with node-fetch@2 but will report an error with node-fetch@3. You can reproduce this with this repo: https://github.com/helbing/node-fetch-issue-1724

image image

helbing avatar Apr 06 '23 21:04 helbing

Any luck resolving this issue?

Jrgsto avatar Oct 14 '23 09:10 Jrgsto

Anyone ever figure this out? I'm seeing the same error though coming from a different library. Wondering if there's a solution for both.

mkilpatrick avatar Feb 12 '24 23:02 mkilpatrick