apollo-resolvers: Error after updating to 1.1.0
On building with typescript, this error message is presented
error TS2339: Property 'createResolver' does not exist on type '(root: any, args?: {}, context?: {}) => Promise<any>'.
Is there anything that needs to be updated?
I’ve reverted to 1.0.3 for now
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 17 (9 by maintainers)
OK it appears that this error is caused when the necessary built in type declarations are not provided to tsc. They should to be explicitly linked either in the tsconfig.json or by passing the --lib flag to tsc.
Like so:
tsc index.ts --lib es6
or configuring your lib and target in your tsconfig.json
More info here, here and here
Closing this unless there are further questions.