den icon indicating copy to clipboard operation
den copied to clipboard

fetch is not a function

Open jDeppen opened this issue 9 years ago • 2 comments

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.

jDeppen avatar May 09 '15 17:05 jDeppen

After working through another project, I noticed fetch doesn't explicitly need to be required.

jDeppen avatar May 11 '15 01:05 jDeppen

+1

jeffbski avatar May 20 '15 21:05 jeffbski