Since node-fetch is an ES6 module dependency, and this library is still a CommonJS module, we cannot import it anymore. The easiest solution is to downgrade to the (still supported) 2.x release of node-fetch.
Migrating the entire application to be an ES6 module is something for the future.
This PR fixes the current runtime error on master.
Since node-fetch is an ES6 module dependency, and this library is still a CommonJS module, we cannot import it anymore. The easiest solution is to downgrade to the (still supported) 2.x release of node-fetch.
Migrating the entire application to be an ES6 module is something for the future.
This PR fixes the current runtime error on master.