apollo-server: Typescript Error after update to apollo-server-express 2.11.0
I update apollo-server-express package from 2.10.1 to 2.11.0 and during the build process of the application I get the following Typescript error message:
node_modules/@apollo/gateway/node_modules/apollo-cache-control/dist/index.d.ts:24:9 - error TS2717: Subsequent property declarations must have the same type. Property 'cacheControl' must be of type '{ setCacheHint: (hint: CacheHint) => void; cacheHint: CacheHint; }', but here has type '{ setCacheHint: (hint: CacheHint) => void; cacheHint: CacheHint; }'.
24 cacheControl: {
~~~~~~~~~~~~
node_modules/apollo-cache-control/dist/index.d.ts:24:9
24 cacheControl: {
~~~~~~~~~~~~
'cacheControl' was also declared here.
When I return back to version 2.10.1, everything is ok.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 15
- Comments: 19 (5 by maintainers)
FYI I had the same issue updating from
apollo-server@2.13.0
toapollo-server@2.13.1
.Fixed by installing
apollo-cache-control@^0.10.1-alpha.0
.@abernix Is it correct that apollo-server-core 2.13.1 references a lot of alpha dependencies?