Federation2 Update issue

Hi Team,
while upgrading to Federation 2 am facing this issue, anybody also got same.

Steps:
Updating apollo/gateway
running federation then getting this issue
node_modules/@apollo/federation-internals/node_modules/@apollo/core-schema/src/gql.ts:20
return this.node(this._lexer.token, {
^
TypeError: this.node is not a function
at Parser.parseDefinition (node_modules/@apollo/federation-internals/node_modules/@apollo/core-schema/src/gql.ts:20:19)
at Parser.many (node_modules/@apollo/federation-internals/node_modules/@apollo/core-schema/node_modules/graphql/language/parser.js:1523:26)
at Parser.parseDocument (node_modules/@apollo/federation-internals/node_modules/@apollo/core-schema/node_modules/graphql/language/parser.js:115:25)
at gql (/node_modules/@apollo/federation-internals/node_modules/@apollo/core-schema/src/gql.ts:12:17)
at Object. (…/node_modules/@apollo/federation-internals/node_modules/@apollo/core-schema/src/linker.ts:157:5)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19)

You can upgrade to graphql 16 to avoid this error.