Coder Social home page Coder Social logo

Comments (4)

swarthout avatar swarthout commented on August 29, 2024

I tried doing import { print } from 'graphql-tag/printer'; before I imported from apollo-client, but typescript wouldn't recognize the package

from graphql-tag.

kamilkisiela avatar kamilkisiela commented on August 29, 2024

@swarthout As I mentioned before at apollostack/angular2-apollo slack channel, to fix RequestInit you should install typings for whatwg-fetch or isomorphic-fetch or fetch polyfill you use :)

from graphql-tag.

swarthout avatar swarthout commented on August 29, 2024

@kamilkisiela This is what I am getting when I try to install whatwg-fetch typings:

➜  client git:(master) ✗ typings search whatwg
Viewing 1 of 1

NAME         SOURCE HOMEPAGE                        DESCRIPTION VERSIONS UPDATED                 
whatwg-fetch dt     https://github.com/github/fetch             1        2016-05-24T14:20:46.000Z


➜  client git:(master) ✗ typings install whatwg-fetch
typings ERR! message Unable to find "whatwg-fetch" ("npm") in the registry. Did you want to try searching another source?Also, if you want contribute these typings, please help us: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/npm/whatwg-fetch/versions/latest responded with 404, expected it to equal 200

typings ERR! cwd /Users/scott/Documents/showcase/client
typings ERR! system Darwin 15.2.0
typings ERR! command "/Users/scott/.nvm/versions/node/v6.0.0/bin/node" "/usr/local/bin/typings" "install" "whatwg-fetch"
typings ERR! node -v v6.0.0
typings ERR! typings -v 0.8.1

typings ERR! If you need help, you may report this error at:
typings ERR!   <https://github.com/typings/typings/issues>

from graphql-tag.

kamilkisiela avatar kamilkisiela commented on August 29, 2024

@swarthout You can use isomorphic-fetch

from graphql-tag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.