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.

When trying to SSR getting error: fetch is not found globally and no fetcher passed

See original GitHub issue

Hi,

I’m getting an error when I try to server side render

Error:
fetch is not found globally and no fetcher passed, to fix pass a fetch for
your environment like https://www.npmjs.com/package/node-fetch.

For example:
import fetch from 'node-fetch';
import { createHttpLink } from 'apollo-link-http';

thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

3reactions
marharytacommented, Sep 25, 2018

This is a valid error @michaelisgro did you find a solution?

0reactions
anarerdenecommented, Apr 8, 2019

@michaelisgro did u find solution

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using ApolloClient with node.js. "fetch is not found globally ...
Can anyone provide some example code for initializing an Apollo Client in node.js with a fetcher? For reference here is my package.json {...
Read more >
Node.js: '"fetch" has not been found globally and no fetcher ...
Intended outcome: I'm unable to get Apollo to run at all, starting with Getting Started from the docs. (I'm not intending to run...
Read more >
ReferenceError: fetch is not defined in NodeJs | bobbyhadz
The "ReferenceError: fetch is not defined" occurs when the fetch() method is used in an environment where it's not supported - most commonly...
Read more >
Delete request only responded with 404 not found-node.js
The fix is to add a '/' prefixed before the deletetodo route as shown below. Before app.delete('deletetodo/:id',(req, res) =>{.
Read more >
Arguments - SWR
SWR is a React Hooks library for data fetching. SWR first returns the data from cache (stale), then sends the fetch request (revalidate),...
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