Graphql-js: Latest version v14.1.0 breaks react-apollo and apollo-boost

Created on 16 Jan 2019  路  10Comments  路  Source: graphql/graphql-js

I have upgraded to latest version of GraphQL v14.1.0 and my build won't work after that. It fails to require react-apollo and apollo-boost.

Version 14.0.2 works fine.

All 10 comments

Can you provide more info please?

For us it breaks typecheck.

Flow 0.83.0, when downgrading to 14.0.2 typecheck passes.

image

Flow 0.84.0:

  • Added support for wildcard (_) type arguments to function / constructor calls. This is
    especially useful when some type arguments are sufficient to pin down the type of the result; the
    others can simply be _.

full changelog

@langpavel thank you very much. I lost a track of flow changes as we are slowly transitioning to typescript.

@langpavel Thanks for the clarification 馃憤

@michalkvasnicak I still think that Flow placeholders are pretty confusing so I removed them as #1669

I have upgraded to latest version of GraphQL v14.1.0 and my build won't work after that. It fails to require react-apollo and apollo-boost.

@pitops Can you please provide some details? For example, copy-paste errors here.

@IvanGoncharov sure give me until tomorrow and I will try to replicate again.

@IvanGoncharov i was able to replicate it today, but after removing node_modules and yarn.lock and re-installed, everything seems to be working correctly.

It seems as though the issue is with yarn.lock ?

yarn.lock should guarantee that same package versions will be installed.
Then it should be deterministic if your app fail or works same way everytime.
Which yarn.lock? Your is yours :-p :smiling_imp:

@pitops You probably had two different versions of graphql-js in your node_modules.
This could happen if one of dependencies depend on graphql as direct dependency and not as peerDependency.
You can test it using npm ls and should see only one version of graphql.

@langpavel hehe yeah I know, my yarn.lock can be evil some times.

@IvanGoncharov That makes sense, thank you.

Was this page helpful?
0 / 5 - 0 ratings