Skip to content

Conversation

@jDeppen
Copy link

@jDeppen jDeppen commented May 9, 2015

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 added 2 commits May 9, 2015 13:19
Object {Headers: function, Request: function, Response: function, fetch: function}

fetch.js module.exports = self; and self has a method named fetch
After working through another project, I noticed fetch doesn't explicitly need to be required.
@jDeppen
Copy link
Author

jDeppen commented May 11, 2015

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

@jeffbski
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants