Aws-mobile-appsync-sdk-js: When trying to SSR getting error: fetch is not found globally and no fetcher passed

Created on 6 Jun 2018  路  5Comments  路  Source: awslabs/aws-mobile-appsync-sdk-js

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

Most helpful comment

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

All 5 comments

@michaelisgro Why did you close this ? what was the solution in the end ?
Thanks

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

yarn add isomorphic-fetch

any solution ?

@michaelisgro did u find solution

Was this page helpful?
0 / 5 - 0 ratings