Hi, I think the types are not updated for [email protected] version and higher.
I've made a little create-react-app to demonstrate : repo
The error ([email protected]) :
yarn run flow
yarn run v0.23.2
$ "/home/michael/Dev/sand-box/react-apollo_flow_issue/node_modules/.bin/flow"
Error: node_modules/react-apollo/index.js.flow:136
136: | Class<React$Component<any, TProps & ApolloClient, any>>,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ identifier `React$Component`. Too few type arguments. Expected at least 1
29: declare class React$Component<Props, State = void> {
^^^^^^^^^^^^ See type parameters of definition here. See lib: /tmp/flow/flowlib_1800abd1/react.js:29
Error: node_modules/react-apollo/react-apollo.umd.js.flow:136
136: | Class<React$Component<any, TProps & ApolloClient, any>>,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ identifier `React$Component`. Too few type arguments. Expected at least 1
29: declare class React$Component<Props, State = void> {
^^^^^^^^^^^^ See type parameters of definition here. See lib: /tmp/flow/flowlib_1800abd1/react.js:29
Found 2 errors
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The component (from the docs exemple) :
_Container.js_
// @flow
import React from "react";
import gql from "graphql-tag";
import { graphql } from "react-apollo";
import type { OperationComponent } from "react-apollo";
const HERO_QUERY = gql`
query GetCharacter($episode: Episode!) {
hero(episode: $episode) {
name
id
friends {
name
id
appearsIn
}
}
}
`;
type Hero = {
name: string,
id: string,
appearsIn: string[],
friends: Hero[]
};
type Response = {
hero: Hero
};
export type InputProps = {
episode: string
};
const withCharacter: OperationComponent<
Response,
InputProps
> = graphql(HERO_QUERY, {
options: ({ episode }) => ({
variables: { episode }
})
});
export default withCharacter(({ data: { loading, hero, error } }) => {
if (loading) return <div>Loading</div>;
if (error) return <h1>ERROR</h1>;
return <p>{hero.name}</p>;
});
I already had the same issue with styled-components, and react-router-dom until they update _flow-typed_
Version
Thanks, I would love to help but I have no idea how to make those changes.
There is PR to update it, see https://github.com/apollographql/react-apollo/pull/1002
This issue has been automatically labled because it has not had recent activity. If you have not received a response from anyone, please mention the repository maintainer (most likely @jbaxleyiii). It will be closed if no further activity occurs. Thank you for your contributions to React Apollo!
The issu was closed but I still can't make it work
"react-apollo": "^1.4.16",
"flow-bin": "^0.53.1"
Logs will go to /tmp/flow/zShomezSmichaelzSDevzSsand-boxzSreact-apollo_flow_issue.log
Error: node_modules/react-apollo/index.js.flow:136
136: | Class<React$Component<any, TProps & ApolloClient, any>>,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ identifier `React$Component`. Too few type arguments. Expected at least 1
29: declare class React$Component<Props, State = void> {
^^^^^^^^^^^^ See type parameters of definition here. See lib: /tmp/flow/flowlib_e898359/react.js:29
Error: node_modules/react-apollo/react-apollo.umd.js.flow:136
136: | Class<React$Component<any, TProps & ApolloClient, any>>,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ identifier `React$Component`. Too few type arguments. Expected at least 1
29: declare class React$Component<Props, State = void> {
^^^^^^^^^^^^ See type parameters of definition here. See lib: /tmp/flow/flowlib_e898359/react.js:29
Found 2 errors
error Command failed with exit code 2.
"react-apollo": "^1.4.16",
"flow-bin": "^0.54.1"
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:219
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
219: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:219
Member 7:
220: GraphQLList<*>;
^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:220
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
82: GraphQLList<GraphQLInputType>
^^^^^^^^^^^^^^^^ union: GraphQLScalarType | GraphQLEnumType | GraphQLInputObjectType | type application of class `GraphQLList` | type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:82
Member 1:
74: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:74
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
74: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:74
Member 2:
75: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:75
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
75: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:75
Member 3:
76: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:76
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
76: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:76
Member 4:
77: GraphQLList<GraphQLInputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:77
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
77: GraphQLList<GraphQLInputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. See: node_modules/graphql/type/definition.js.flow:77
Member 5:
v--------------
78: GraphQLNonNull<
79: GraphQLScalarType |
80: GraphQLEnumType |
...:
83: >;
^ type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:78
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
v--------------
78: GraphQLNonNull<
79: GraphQLScalarType |
80: GraphQLEnumType |
...:
83: >;
^ GraphQLNonNull. See: node_modules/graphql/type/definition.js.flow:78
Member 7:
v--------------
113: GraphQLNonNull<
114: GraphQLScalarType |
115: GraphQLObjectType |
...:
120: >;
^ type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:113
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
1262: export class GraphQLNonNull<T: GraphQLNullableType> {
^^^^^^^^^^^^^^^^^^^ union: GraphQLScalarType | GraphQLObjectType | GraphQLInterfaceType | GraphQLUnionType | GraphQLEnumType | GraphQLInputObjectType | type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:1262
Member 1:
214: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:214
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
214: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:214
Member 2:
215: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:215
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
215: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:215
Member 3:
216: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:216
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
216: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:216
Member 4:
217: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:217
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
217: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:217
Member 5:
218: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:218
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
218: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:218
Member 6:
219: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:219
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
219: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:219
Member 7:
220: GraphQLList<*>;
^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:220
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
82: GraphQLList<GraphQLInputType>
^^^^^^^^^^^^^^^^ union: GraphQLScalarType | GraphQLEnumType | GraphQLInputObjectType | type application of class `GraphQLList` | type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:82
Member 1:
74: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:74
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
74: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:74
Member 2:
75: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:75
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
75: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:75
Member 3:
76: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:76
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
76: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:76
Member 4:
77: GraphQLList<GraphQLInputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:77
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
77: GraphQLList<GraphQLInputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. See: node_modules/graphql/type/definition.js.flow:77
Member 5:
v--------------
78: GraphQLNonNull<
79: GraphQLScalarType |
80: GraphQLEnumType |
...:
83: >;
^ type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:78
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
v--------------
78: GraphQLNonNull<
79: GraphQLScalarType |
80: GraphQLEnumType |
...:
83: >;
^ GraphQLNonNull. See: node_modules/graphql/type/definition.js.flow:78
Error: node_modules/graphql/validation/rules/OverlappingFieldsCanBeMerged.js.flow:641
641: if (type1 instanceof GraphQLNonNull) {
^^^^^^^^^^^^^^ GraphQLNonNull. This type is incompatible with
628: type1: GraphQLOutputType,
^^^^^^^^^^^^^^^^^ union: GraphQLScalarType | GraphQLObjectType | GraphQLInterfaceType | GraphQLUnionType | GraphQLEnumType | type application of class `GraphQLList` | typeapplication of class `GraphQLNonNull`
Member 1:
107: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:107
Error:
641: if (type1 instanceof GraphQLNonNull) {
^^^^^^^^^^^^^^ GraphQLNonNull. This type is incompatible with
107: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:107
Member 2:
108: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:108
Error:
641: if (type1 instanceof GraphQLNonNull) {
^^^^^^^^^^^^^^ GraphQLNonNull. This type is incompatible with
108: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:108
Member 3:
109: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:109
Error:
641: if (type1 instanceof GraphQLNonNull) {
^^^^^^^^^^^^^^ GraphQLNonNull. This type is incompatible with
109: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:109
Member 4:
110: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:110
Error:
641: if (type1 instanceof GraphQLNonNull) {
^^^^^^^^^^^^^^ GraphQLNonNull. This type is incompatible with
110: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:110
Member 5:
111: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:111
Error:
641: if (type1 instanceof GraphQLNonNull) {
^^^^^^^^^^^^^^ GraphQLNonNull. This type is incompatible with
111: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:111
Member 6:
112: GraphQLList<GraphQLOutputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:112
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
1262: export class GraphQLNonNull<T: GraphQLNullableType> {
^^^^^^^^^^^^^^^^^^^ union: GraphQLScalarType | GraphQLObjectType | GraphQLInterfaceType | GraphQLUnionType | GraphQLEnumType | GraphQLInputObjectType | type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:1262
Member 1:
214: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:214
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
214: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:214
Member 2:
215: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:215
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
215: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:215
Member 3:
216: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:216
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
216: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:216
Member 4:
217: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:217
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
217: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:217
Member 5:
218: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:218
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
218: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:218
Member 6:
219: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:219
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
219: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:219
Member 7:
220: GraphQLList<*>;
^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:220
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
82: GraphQLList<GraphQLInputType>
^^^^^^^^^^^^^^^^ union: GraphQLScalarType | GraphQLEnumType | GraphQLInputObjectType | type application of class `GraphQLList` | type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:82
Member 1:
74: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:74
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
74: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:74
Member 2:
75: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:75
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
75: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:75
Member 3:
76: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:76
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
76: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:76
Member 4:
77: GraphQLList<GraphQLInputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:77
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
77: GraphQLList<GraphQLInputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. See: node_modules/graphql/type/definition.js.flow:77
Member 5:
v--------------
78: GraphQLNonNull<
79: GraphQLScalarType |
80: GraphQLEnumType |
...:
83: >;
^ type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:78
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
v--------------
78: GraphQLNonNull<
79: GraphQLScalarType |
80: GraphQLEnumType |
...:
83: >;
^ GraphQLNonNull. See: node_modules/graphql/type/definition.js.flow:78
Member 7:
v--------------
113: GraphQLNonNull<
114: GraphQLScalarType |
115: GraphQLObjectType |
...:
120: >;
^ type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:113
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
1262: export class GraphQLNonNull<T: GraphQLNullableType> {
^^^^^^^^^^^^^^^^^^^ union: GraphQLScalarType | GraphQLObjectType | GraphQLInterfaceType | GraphQLUnionType | GraphQLEnumType | GraphQLInputObjectType | type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:1262
Member 1:
214: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:214
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
214: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:214
Member 2:
215: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:215
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
215: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:215
Member 3:
216: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:216
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
216: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:216
Member 4:
217: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:217
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
217: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:217
Member 5:
218: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:218
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
218: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:218
Member 6:
219: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:219
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
219: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:219
Member 7:
220: GraphQLList<*>;
^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:220
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
82: GraphQLList<GraphQLInputType>
^^^^^^^^^^^^^^^^ union: GraphQLScalarType | GraphQLEnumType | GraphQLInputObjectType | type application of class `GraphQLList` | type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:82
Member 1:
74: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:74
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
74: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:74
Member 2:
75: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:75
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
75: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:75
Member 3:
76: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:76
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
76: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:76
Member 4:
77: GraphQLList<GraphQLInputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:77
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
77: GraphQLList<GraphQLInputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. See: node_modules/graphql/type/definition.js.flow:77
Member 5:
v--------------
78: GraphQLNonNull<
79: GraphQLScalarType |
80: GraphQLEnumType |
...:
83: >;
^ type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:78
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
v--------------
78: GraphQLNonNull<
79: GraphQLScalarType |
80: GraphQLEnumType |
...:
83: >;
^ GraphQLNonNull. See: node_modules/graphql/type/definition.js.flow:78
Error: node_modules/graphql/validation/rules/OverlappingFieldsCanBeMerged.js.flow:647
647: return type1 instanceof GraphQLNonNull ?
^^^^^^^^^^^^^^ GraphQLNonNull. This type is incompatible with
628: type1: GraphQLOutputType,
^^^^^^^^^^^^^^^^^ union: GraphQLScalarType | GraphQLObjectType | GraphQLInterfaceType | GraphQLUnionType | GraphQLEnumType | type application of class `GraphQLList` | typeapplication of class `GraphQLNonNull`
Member 1:
107: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:107
Error:
647: return type1 instanceof GraphQLNonNull ?
^^^^^^^^^^^^^^ GraphQLNonNull. This type is incompatible with
107: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:107
Member 2:
108: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:108
Error:
647: return type1 instanceof GraphQLNonNull ?
^^^^^^^^^^^^^^ GraphQLNonNull. This type is incompatible with
108: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:108
Member 3:
109: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:109
Error:
647: return type1 instanceof GraphQLNonNull ?
^^^^^^^^^^^^^^ GraphQLNonNull. This type is incompatible with
109: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:109
Member 4:
110: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:110
Error:
647: return type1 instanceof GraphQLNonNull ?
^^^^^^^^^^^^^^ GraphQLNonNull. This type is incompatible with
110: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:110
Member 5:
111: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:111
Error:
647: return type1 instanceof GraphQLNonNull ?
^^^^^^^^^^^^^^ GraphQLNonNull. This type is incompatible with
111: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:111
Member 6:
112: GraphQLList<GraphQLOutputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:112
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
1262: export class GraphQLNonNull<T: GraphQLNullableType> {
^^^^^^^^^^^^^^^^^^^ union: GraphQLScalarType | GraphQLObjectType | GraphQLInterfaceType | GraphQLUnionType | GraphQLEnumType | GraphQLInputObjectType | type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:1262
Member 1:
214: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:214
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
214: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:214
Member 2:
215: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:215
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
215: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:215
Member 3:
216: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:216
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
216: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:216
Member 4:
217: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:217
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
217: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:217
Member 5:
218: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:218
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
218: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:218
Member 6:
219: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:219
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
219: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:219
Member 7:
220: GraphQLList<*>;
^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:220
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
82: GraphQLList<GraphQLInputType>
^^^^^^^^^^^^^^^^ union: GraphQLScalarType | GraphQLEnumType | GraphQLInputObjectType | type application of class `GraphQLList` | type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:82
Member 1:
74: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:74
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
74: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:74
Member 2:
75: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:75
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
75: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:75
Member 3:
76: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:76
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
76: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:76
Member 4:
77: GraphQLList<GraphQLInputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:77
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
77: GraphQLList<GraphQLInputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. See: node_modules/graphql/type/definition.js.flow:77
Member 5:
v--------------
78: GraphQLNonNull<
79: GraphQLScalarType |
80: GraphQLEnumType |
...:
83: >;
^ type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:78
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
v--------------
78: GraphQLNonNull<
79: GraphQLScalarType |
80: GraphQLEnumType |
...:
83: >;
^ GraphQLNonNull. See: node_modules/graphql/type/definition.js.flow:78
Member 7:
v--------------
113: GraphQLNonNull<
114: GraphQLScalarType |
115: GraphQLObjectType |
...:
120: >;
^ type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:113
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
1262: export class GraphQLNonNull<T: GraphQLNullableType> {
^^^^^^^^^^^^^^^^^^^ union: GraphQLScalarType | GraphQLObjectType | GraphQLInterfaceType | GraphQLUnionType | GraphQLEnumType | GraphQLInputObjectType | type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:1262
Member 1:
214: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:214
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
214: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:214
Member 2:
215: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:215
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
215: GraphQLObjectType |
^^^^^^^^^^^^^^^^^ GraphQLObjectType. See: node_modules/graphql/type/definition.js.flow:215
Member 3:
216: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:216
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
216: GraphQLInterfaceType |
^^^^^^^^^^^^^^^^^^^^ GraphQLInterfaceType. See: node_modules/graphql/type/definition.js.flow:216
Member 4:
217: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:217
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
217: GraphQLUnionType |
^^^^^^^^^^^^^^^^ GraphQLUnionType. See: node_modules/graphql/type/definition.js.flow:217
Member 5:
218: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:218
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
218: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:218
Member 6:
219: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:219
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
219: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:219
Member 7:
220: GraphQLList<*>;
^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:220
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
82: GraphQLList<GraphQLInputType>
^^^^^^^^^^^^^^^^ union: GraphQLScalarType | GraphQLEnumType | GraphQLInputObjectType | type application of class `GraphQLList` | type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:82
Member 1:
74: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:74
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
74: GraphQLScalarType |
^^^^^^^^^^^^^^^^^ GraphQLScalarType. See: node_modules/graphql/type/definition.js.flow:74
Member 2:
75: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:75
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
75: GraphQLEnumType |
^^^^^^^^^^^^^^^ GraphQLEnumType. See: node_modules/graphql/type/definition.js.flow:75
Member 3:
76: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:76
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
76: GraphQLInputObjectType |
^^^^^^^^^^^^^^^^^^^^^^ GraphQLInputObjectType. See: node_modules/graphql/type/definition.js.flow:76
Member 4:
77: GraphQLList<GraphQLInputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type application of class `GraphQLList`. See: node_modules/graphql/type/definition.js.flow:77
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
77: GraphQLList<GraphQLInputType> |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GraphQLList. See: node_modules/graphql/type/definition.js.flow:77
Member 5:
v--------------
78: GraphQLNonNull<
79: GraphQLScalarType |
80: GraphQLEnumType |
...:
83: >;
^ type application of class `GraphQLNonNull`. See: node_modules/graphql/type/definition.js.flow:78
Error:
119: GraphQLList<GraphQLOutputType>
^^^^^^^^^^^^^^^^^ GraphQLObjectType. This type is incompatible with. See: node_modules/graphql/type/definition.js.flow:119
v--------------
78: GraphQLNonNull<
79: GraphQLScalarType |
80: GraphQLEnumType |
...:
83: >;
^ GraphQLNonNull. See: node_modules/graphql/type/definition.js.flow:78
Error: node_modules/react-apollo/index.js.flow:136
136: | Class<React$Component<any, TProps & ApolloClient, any>>,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ identifier `React$Component`. Too few type arguments. Expected at least 1
29: declare class React$Component<Props, State = void> {
^^^^^^^^^^^^ See type parameters of definition here. See lib: /tmp/flow/flowlib_38dc4802/react.js:29
Error: node_modules/react-apollo/react-apollo.umd.js.flow:136
136: | Class<React$Component<any, TProps & ApolloClient, any>>,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ identifier `React$Component`. Too few type arguments. Expected at least 1
29: declare class React$Component<Props, State = void> {
^^^^^^^^^^^^ See type parameters of definition here. See lib: /tmp/flow/flowlib_38dc4802/react.js:29
Found 16 errors
error Command failed with exit code 2.
and there is even more errors for flow 0.57.3.
What can I do ?
Thanks
Looks like the changes were reverted in https://github.com/apollographql/react-apollo/pull/1125.
Check https://github.com/apollographql/react-apollo/issues/1220
What are we supposed to do about this? Is there plans to fix the flow typings?
@jbaxleyiii should this issue be reopened, since this is still a problem? Thanks!
What's the latest here? Would love for recent flow support.
Until the true fix is released, I took the liberty of forking and merging the partially broken fix into master. For me, it is better than nothing. Feel free to try it:
npm i --save react-apollo@github:vydia/react-apollo-deployed#36219059fd57e5367eae5e688fd4bcca0ac1d2a5
I was able to fix this problem add this to my .flowconfig
[libs]
node_modules/react-apollo/index.js.flow
node_modules/react-apollo/react-apollo.umd.js.flow
@elucaswork could you show your whole .flowconfig?
@necinc yep, it's here:
I have it on two projects
https://gist.github.com/elucaswork/4f6911586f455f6897c1829b25fb5361.
https://gist.github.com/elucaswork/e9623285c736a6f25188cf20f6c292a0
Most helpful comment
@jbaxleyiii should this issue be reopened, since this is still a problem? Thanks!