Having trouble with import from node-fetch? Common issues and fixes? or How to properly use import fr

18 Replies, 906 Views

Hey! Just a quick tip—if you’re using TypeScript, make sure your `tsconfig.json` has `"module": "ESNext"`.

Otherwise, the import from node-fetch might get compiled weirdly.

Also, `npm ls node-fetch` to confirm you’re not accidentally pulling in multiple versions.

Messages In This Thread



Users browsing this thread: 1 Guest(s)