fjodor-rybakov / discord-nestjs

👾 NestJS package for discord.js
MIT License
271 stars 49 forks source link

Could not resolve dependency: npm ERR! peer reflect-metadata@"^0.1.14" #1154

Closed abriginets closed 9 months ago

abriginets commented 9 months ago

Describe the bug Unable to install @discord-nestjs/core while reflect-metadata package is @ v2. I believe this is due to https://github.com/fjodor-rybakov/discord-nestjs/blob/master/packages/core/package.json#L41

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: nest-starter@1.0.0
npm ERR! Found: reflect-metadata@0.2.1
npm ERR! node_modules/reflect-metadata
npm ERR!   reflect-metadata@"^0.2.1" from the root project
npm ERR!   peer reflect-metadata@"^0.1.12 || ^0.2.0" from @nestjs/common@10.3.3
npm ERR!   node_modules/@nestjs/common
npm ERR!     @nestjs/common@"^10.3.3" from the root project
npm ERR!     peer @nestjs/common@"9.* || 10.*" from @discord-nestjs/core@5.3.13
npm ERR!     node_modules/@discord-nestjs/core
npm ERR!       @discord-nestjs/core@"*" from the root project
npm ERR!     5 more (@nestjs/core, @nestjs/microservices, ...)
npm ERR!   3 more (@nestjs/core, @nestjs/microservices, @nestjs/websockets)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer reflect-metadata@"^0.1.14" from @discord-nestjs/core@5.3.13
npm ERR! node_modules/@discord-nestjs/core
npm ERR!   @discord-nestjs/core@"*" 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! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /home/goodwin/.npm/_logs/2024-02-13T00_16_48_855Z-eresolve-report.txt

To Reproduce Steps to reproduce the behavior:

  1. npm i reflect-metadata@v2
  2. npm install @discord-nestjs/core
  3. Get the error from npm

Expected behavior @discord-nestjs/core should be compatible with reflect-metadata V2

Desktop (please complete the following information):

fjodor-rybakov commented 9 months ago

Done