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

18 Replies, 924 Views

Hey! Had the same issue last week. Turns out, you might need to use the full import path like this:

`import fetch from 'node-fetch';`

Also, double-check your Node version—some older ones don’t play nice with ES modules. Updating Node fixed it for me.

If you're still stuck, this guide helped me a ton: [ES Modules in Node.js](https://nodejs.org/api/esm.html).

Messages In This Thread



Users browsing this thread: 2 Guest(s)