0

Apollo GraphQL Gateway Module にバグがあるようです

次のドキュメントを使用して PoC を実行しようとしています https://docs.nestjs.com/graphql/federation#sharing-context

コマンド「npm run dev」を使用すると、次のエラーが発生します。

この解決策を教えてください....私はNodeJS 16.xとNestJS 8.1.2を使用しています

node_modules/@apollo/gateway/src/make-fetch-happen.d.ts:58:18 - error TS2300: Duplicate identifier 'fetch'.

58   export default fetch;
                    ~~~~~

  node_modules/@nestjs/graphql/node_modules/@apollo/gateway/src/make-fetch-happen.d.ts:58:18
    58   export default fetch;
                        ~~~~~
    'fetch' was also declared here.

node_modules/@apollo/query-planner/dist/composedSchema/metadata.d.ts:13:9 - error TS2717: Subsequent property declarations must have the same type.  Property 'federation' must be of type 'FederationFieldMetadata', but here has type 'FederationFieldMetadata'.

13         federation?: FederationFieldMetadata;
           ~~~~~~~~~~

  node_modules/@nestjs/graphql/node_modules/@apollo/query-planner/dist/composedSchema/metadata.d.ts:13:9
    13         federation?: FederationFieldMetadata;
               ~~~~~~~~~~
    'federation' was also declared here.

node_modules/@nestjs/graphql/node_modules/@apollo/gateway/src/make-fetch-happen.d.ts:58:18 - error TS2300: Duplicate identifier 'fetch'.

58   export default fetch;
                    ~~~~~

  node_modules/@apollo/gateway/src/make-fetch-happen.d.ts:58:18
    58   export default fetch;
                        ~~~~~
    'fetch' was also declared here.

[12:44:29 PM] Found 3 errors. Watching for file changes.

4

0 に答える 0