question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

isomorphic-fetch issues

See original GitHub issue

So, I found something interesting when integrating apollo-client in to our app. I installed apollo-client in to our library, and then loaded our library in to our app that uses webpack.

isomorphic-fetch throws this error:

ReferenceError: self is not defined

Looks like this is an ongoing unfixed issue: https://github.com/matthew-andrews/isomorphic-fetch/pull/63

I set up a chain of forks to get it working, but not a permanent solution:

https://github.com/NewSpring/apollo-client/tree/self-fix https://github.com/NewSpring/isomorphic-fetch/tree/self-fix

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
stubailocommented, Apr 18, 2016

Awesome! I’m going to start polishing up docs and example apps so I’ll see how much of a hassle it is to get the right environment set up.

0reactions
jbaxleyiiicommented, Apr 19, 2016

the app should work as is, further discussion can be found here: #126

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · matthew-andrews/isomorphic-fetch - GitHub
Isomorphic WHATWG Fetch API, for Node & Browserify - Issues · matthew-andrews/isomorphic-fetch.
Read more >
isomorphic-fetch - npm Package Health Analysis - Snyk
The npm package isomorphic-fetch was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed as...
Read more >
isomorphic-fetch - npm
Why Use Isomorphic Fetch. The Fetch API is currently not implemented consistently across browsers. This module will enable you to use fetch in ......
Read more >
isomorphic-fetch examples - CodeSandbox
Learn how to use isomorphic-fetch by viewing and forking example apps that make use of isomorphic-fetch on CodeSandbox. ; revolut-checkout-widget-next-example.
Read more >
@applitools/isomorphic-fetch | Yarn - Package Manager
This adds fetch as a global so that its API is consistent between client and server. You must bring your own ES6 Promise...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found