by devmunchies · 5y ago · 0 comments
I wasn’t able to use the latest version of node-fetch in a node.js script since it doesn’t support commonjs. The project literally has “node” in the name and doesn’t support default node.js.
Since you're using it for an async operation anyway, dynamic import should have worked quite well.