den
den copied to clipboard
fetch is not a function
I was getting fetch is not a function
from SearchResults.js:171
Fetch is a method of var fetch = require('fetch');
console.log(fetch)
=> Object {Headers: function, Request: function, Response: function, fetch: function}
fetch.js
module.exports = self;
and self has a method named fetch
self.fetch = function(input, init)...
Everything worked after I made this change.
After working through another project, I noticed fetch doesn't explicitly need to be required.
+1