I'm not sure if this is vue-cli-plugin-apollo problem, but here they are:
ERROR in /home/wildan/Projects/Sensorfied/EDI/edi-ui/src/apollo.ts
7:39 Argument of type '{ link: ApolloLink; cache: InMemoryCache; connectToDevTools: boolean; }' is not assignable to parameter of type
'ApolloClientOptions<NormalizedCacheObject>'.
Types of property 'link' are incompatible.
Type 'ApolloLink' is not assignable to type 'ApolloLink'. Two different types with this name exist, but they are unrelated.
Types of property 'split' are incompatible.
Type '(test: (op: Operation) => boolean, left: ApolloLink | RequestHandler, right?: ApolloLink | Reques...' is not assignable t
o type '(test: (op: Operation) => boolean, left: ApolloLink | RequestHandler, right?: ApolloLink | Reques...'. Two different types with
this name exist, but they are unrelated.
Types of parameters 'test' and 'test' are incompatible.
Types of parameters 'op' and 'op' are incompatible.
Type 'Operation' is not assignable to type 'Operation'. Two different types with this name exist, but they are unrelated.
Types of property 'query' are incompatible.
Type 'DocumentNode' is not assignable to type 'DocumentNode'. Two different types with this name exist, but they areunrelated.
Types of property 'loc' are incompatible.
Type 'Location | undefined' is not assignable to type 'Location | undefined'. Two different types with this nameexist, but they are unrelated.
Type 'Location' is not assignable to type 'Location | undefined'.
Type 'Location' is not assignable to type 'Location'. Two different types with this name exist, but they areunrelated.
Types of property 'startToken' are incompatible.
Type 'Token' is not assignable to type 'Token'. Two different types with this name exist, but they are unrelated.
Types of property 'prev' are incompatible.
Type 'Token | undefined' is not assignable to type 'Token | null'.
Type 'undefined' is not assignable to type 'Token | null'.
5 | import VueApollo from 'vue-apollo'
6 |
> 7 | const ethingClient = new ApolloClient({
| ^
8 | link: createHttpLink({
9 | uri: '/graphql/ething'
10 | }),
No lint errors found
Version: typescript 2.8.1, tslint 5.9.1
Time: 675ms
I'm not sure if this is
vue-cli-plugin-apollo
problem, but here they are: