mailer: Could not resolve dependency

Hello, When trying to npm install @nestjs-modules/mailer, I get this:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: juris-rest-api@0.0.1
npm ERR! Found: @nestjs/common@8.0.11
npm ERR! node_modules/@nestjs/common
npm ERR!   @nestjs/common@"^8.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @nestjs/common@"^7.0.9" from @nestjs-modules/mailer@1.6.0
npm ERR! node_modules/@nestjs-modules/mailer
npm ERR!   @nestjs-modules/mailer@"*" 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.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 13
  • Comments: 17

Most upvoted comments

Hey everyone!

So this is a peerDependencies issue, and it looks like the code here in Github has been updated to include the necessary change, but I believe it hasn’t been PUBLISHED to NPM yet. cc @juandav @cdiaz

That would fix it though 😃

For those curious, it’s these lines here that have to keep being updated for each new version (and published to npm). This is something new to npm, and it can be fixed either on a package-level, or via npm i --legacy-peer-deps (as mentioned elsewhere).

For now you can use this workaround npm install --save @nestjs-modules/mailer nodemailer --legacy-peer-deps

For HttpModule I simply used plain axios

For my next project/upgrade I will certainly use some thing like sails.js simple and to the point. I don’t know why Nest.js reminds me with legacy J2EE configuration over configuration over …

Do you guys have an ETA on when a patch will be released to NPM?

Having the same issue

code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: turbo@0.0.1
npm ERR! Found: @nestjs/common@8.1.1
npm ERR! node_modules/@nestjs/common
npm ERR!   @nestjs/common@"^8.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @nestjs/common@"^7.0.9" from @nestjs-modules/mailer@1.6.0
npm ERR! node_modules/@nestjs-modules/mailer
npm ERR!   @nestjs-modules/mailer@"*" 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.

Hoping for this fix to be released soon. ❤️

All i want for Christmas is this package update along with security fixes. Any news?

I have the same problem, could you please update the library? 🙏🏻

same, plz update

Why everything I try to do with nest.js is hard? Same issue yesterday with HttpModule, the documentation steps simply didn’t work!