Having trouble with import from node-fetch? How do I properly set it up in my project?

18 Replies, 955 Views

Hey y’all,

So I’m trying to *import from node-fetch* in my project, but I keep getting errors. Like, it just won’t work??

I did `npm install node-fetch` and all that, but when I try to `import from node-fetch`, it’s like “module not found” or some weird syntax error.

Am I missing something? Do I need to tweak my package.json or use some weird config?

Also, I’m on Node 16, if that matters. Pls help, I’m lowkey stuck lol.

Thanks in advance!

Messages In This Thread
Having trouble with import from node-fetch? How do I properly set it up in my project? - by - 21-07-2024, 07:08 PM



Users browsing this thread: 2 Guest(s)