That error usually crops up when using node-fetch. It doesn’t do it often anymore but the simplest solution is to switch the package for isomorphic-fetch
. The good thing is the syntax/api for is the same so it just a matter of changing the require statement.
Let me know if that helps.