Hey! Quick tip: if you’re using Node 16 and trying to import from node-fetch, make sure your file extension is `.mjs` or your package.json has `"type": "module"`. Node 16 treats ESM and CommonJS differently, and it can throw errors if it’s not set up right.
Also, check out the official node-fetch docs—they’ve got a section on ESM usage that’s super helpful.
Also, check out the official node-fetch docs—they’ve got a section on ESM usage that’s super helpful.
