Search code examples
node.jsnestjsapollo

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

  • There were other libraries that were outdated, after I updated all of them, the error disappeared.