'I need help on 'Cannot find namespace Kind' issue

I just updated NestJs to latest (8.3.1) from 7.5, solved the issues that popped out, but I cannot get rid of one of them.

The full error:

node_modules/@apollo/federation/dist/composition/utils.d.ts:43:316 - error TS2503: Cannot find namespace 'Kind'.

Although Kind is a constant imported from the GraphQl module, it seems it does not recognize it. Or maybe is a typescript issue?

Any help would be greatly appreciated.



Solution 1:[1]

It looks like @apollo/[email protected] has typing issues. @apollo/[email protected] is broken for GraphQL 15, so you have to downgrade to @apollo/gateway@~0.46.0:

$ yarn add @apollo/gateway@~0.46.0

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Fathy