command:
npm i nestjs-graphql-dataloader --save
output:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @nestjs/graphql@9.1.2
npm ERR! Found: @apollo/federation@0.25.2
npm ERR! node_modules/@apollo/federation
npm ERR! @apollo/federation@"^0.25.1" from @apollo/gateway@0.29.1
npm ERR! node_modules/@apollo/gateway
npm ERR! peerOptional @apollo/gateway@"^0.29.0 || ^0.32.0 || ^0.33.0 || ^0.35.0 || ^0.38.0 || ^0.42.0" from @nestjs/graphql@9.1.2
npm ERR! node_modules/@nestjs/graphql
npm ERR! @nestjs/graphql@"^9.1.2" from the root project
npm ERR! optional @apollo/gateway@"^0.29.0" from @nestjs/graphql@7.11.0
npm ERR! node_modules/nestjs-graphql-dataloader/node_modules/@nestjs/graphql
npm ERR! @nestjs/graphql@"^7.1.5" from nestjs-graphql-dataloader@0.1.28
npm ERR! node_modules/nestjs-graphql-dataloader
npm ERR! nestjs-graphql-dataloader@"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @apollo/federation@"^0.26.0 || ^0.27.0 || ^0.29.0 || ^0.33.0" from @nestjs/graphql@9.1.2
npm ERR! node_modules/@nestjs/graphql
npm ERR! @nestjs/graphql@"^9.1.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @apollo/federation@0.33.8
npm ERR! node_modules/@apollo/federation
npm ERR! peerOptional @apollo/federation@"^0.26.0 || ^0.27.0 || ^0.29.0 || ^0.33.0" from @nestjs/graphql@9.1.2
npm ERR! node_modules/@nestjs/graphql
npm ERR! @nestjs/graphql@"^9.1.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
command:
npm i nestjs-graphql-dataloader --save
output:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @nestjs/graphql@9.1.2
npm ERR! Found: @apollo/federation@0.25.2
npm ERR! node_modules/@apollo/federation
npm ERR! @apollo/federation@"^0.25.1" from @apollo/gateway@0.29.1
npm ERR! node_modules/@apollo/gateway
npm ERR! peerOptional @apollo/gateway@"^0.29.0 || ^0.32.0 || ^0.33.0 || ^0.35.0 || ^0.38.0 || ^0.42.0" from @nestjs/graphql@9.1.2
npm ERR! node_modules/@nestjs/graphql
npm ERR! @nestjs/graphql@"^9.1.2" from the root project
npm ERR! optional @apollo/gateway@"^0.29.0" from @nestjs/graphql@7.11.0
npm ERR! node_modules/nestjs-graphql-dataloader/node_modules/@nestjs/graphql
npm ERR! @nestjs/graphql@"^7.1.5" from nestjs-graphql-dataloader@0.1.28
npm ERR! node_modules/nestjs-graphql-dataloader
npm ERR! nestjs-graphql-dataloader@"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @apollo/federation@"^0.26.0 || ^0.27.0 || ^0.29.0 || ^0.33.0" from @nestjs/graphql@9.1.2
npm ERR! node_modules/@nestjs/graphql
npm ERR! @nestjs/graphql@"^9.1.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @apollo/federation@0.33.8
npm ERR! node_modules/@apollo/federation
npm ERR! peerOptional @apollo/federation@"^0.26.0 || ^0.27.0 || ^0.29.0 || ^0.33.0" from @nestjs/graphql@9.1.2
npm ERR! node_modules/@nestjs/graphql
npm ERR! @nestjs/graphql@"^9.1.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!