Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

'graphql' does not contain an export named 'print' #308

Closed
2 of 5 tasks
cj opened this issue Sep 28, 2018 · 3 comments
Closed
2 of 5 tasks

'graphql' does not contain an export named 'print' #308

cj opened this issue Sep 28, 2018 · 3 comments
Labels
blocking Prevents production or dev due to perf, bug, build error, etc.. has-reproduction ❤ Has a reproduction in a codesandbox or single minimal repository

Comments

@cj
Copy link

cj commented Sep 28, 2018

  • has-reproduction
  • feature
  • docs
  • blocking
  • good first issue

To re-create, follow the instructions here facebook/create-react-app#5103 to create a new create-react-app v2. Then just setup apollo-link-state, run yarn start and you'll get the following error:

Failed to compile.

./node_modules/apollo-link-state/lib/utils.js 21:51-56
  'graphql' does not contain an export named 'print'.

To solve this all you need to do this graphql/graphql-js#1272 (comment) here on its own line https://github.com/apollographql/apollo-link-state/blob/master/packages/apollo-link-state/src/utils.ts#L3.

@ghost ghost added blocking Prevents production or dev due to perf, bug, build error, etc.. has-reproduction ❤ Has a reproduction in a codesandbox or single minimal repository labels Sep 28, 2018
@Timer
Copy link

Timer commented Sep 28, 2018

Should be fixed in react-scripts@2.0.1, please try.

@cj
Copy link
Author

cj commented Sep 28, 2018

@Timer That works too. Thank you for fixing that so quickly, hope you have a great weekend! 😃

@cj cj closed this as completed Sep 28, 2018
@Timer
Copy link

Timer commented Sep 28, 2018

You too!

Falieson added a commit to TGRstack/apollo-link-state that referenced this issue Dec 9, 2018
@Falieson Falieson mentioned this issue Dec 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocking Prevents production or dev due to perf, bug, build error, etc.. has-reproduction ❤ Has a reproduction in a codesandbox or single minimal repository
Projects
None yet
Development

No branches or pull requests

2 participants