Closed joeyparrish closed 6 months ago
node-fetch is an ES module, and you can't require() ESM from a non-ESM script. I'm not sure when this changed, or with what versions of node and this package it used to work, but downgrading to node-fetch v2 gives us the non-ESM version that works.
node-fetch is an ES module, and you can't require() ESM from a non-ESM script. I'm not sure when this changed, or with what versions of node and this package it used to work, but downgrading to node-fetch v2 gives us the non-ESM version that works.