Let Next.js polyfill fetch.
This commit is contained in:
parent
a756d543fd
commit
6026de864a
@ -18,7 +18,6 @@
|
|||||||
"apollo-client": "^2.6.10",
|
"apollo-client": "^2.6.10",
|
||||||
"apollo-upload-client": "^13.0.0",
|
"apollo-upload-client": "^13.0.0",
|
||||||
"babel-plugin-graphql-tag": "^2.5.0",
|
"babel-plugin-graphql-tag": "^2.5.0",
|
||||||
"cross-fetch": "^3.0.4",
|
|
||||||
"device-agnostic-ui": "^5.1.1",
|
"device-agnostic-ui": "^5.1.1",
|
||||||
"graphql": "^15.0.0",
|
"graphql": "^15.0.0",
|
||||||
"graphql-tag": "^2.10.3",
|
"graphql-tag": "^2.10.3",
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
import 'cross-fetch/polyfill';
|
|
||||||
import { ApolloProvider } from '@apollo/react-hooks';
|
import { ApolloProvider } from '@apollo/react-hooks';
|
||||||
import { InMemoryCache } from 'apollo-cache-inmemory';
|
import { InMemoryCache } from 'apollo-cache-inmemory';
|
||||||
import { ApolloClient } from 'apollo-client';
|
import { ApolloClient } from 'apollo-client';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user