Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] package installation of @tsed/typeorm and typeorm produces dependency conflict #2707

Closed
reestolonio opened this issue May 15, 2024 · 2 comments
Assignees
Labels

Comments

@reestolonio
Copy link

Describe the bug

Package installation, from empty project, produces this dependency conflict.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @tsed/typeorm@7.69.3
npm ERR! Found: typeorm@0.3.20
npm ERR! node_modules/typeorm
npm ERR!   typeorm@"^0.3.20" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer typeorm@"^0.2.26" from @tsed/typeorm@7.69.3
npm ERR! node_modules/@tsed/typeorm
npm ERR!   @tsed/typeorm@"^7.69.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: typeorm@0.2.45
npm ERR! node_modules/typeorm
npm ERR!   peer typeorm@"^0.2.26" from @tsed/typeorm@7.69.3
npm ERR!   node_modules/@tsed/typeorm
npm ERR!     @tsed/typeorm@"^7.69.3" 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.

To Reproduce

  1. Create project folder
$ mkdir my-project
$ cd my-project
  1. Install @tsed/typeorm and typeorm packages
$ npm install --save @tsed/typeorm
$ npm install --save typeorm
  1. Verify installation
$ npm install

Expected behavior

Should successfully install latest @tsed/typeorm and typeorm^0.3.X

Code snippets

No response

Repository URL example

No response

OS

macOS

Node version

Node v20.10.0

Library version

7.69.3

Additional context

npm v10.2.3

@reestolonio reestolonio changed the title [BUG] package installation of @tsed/typeorm and typeorm produces confluct [BUG] package installation of @tsed/typeorm and typeorm produces dependency conflict May 15, 2024
@Romakita
Copy link
Collaborator

Hello @reestolonio
As it's explain in the doc you don't need to install the @tsed/typeorm plugin for typeorm v0.3+

Please take a time to read the doc.

See you

Copy link

🎉 Are you happy?

If you appreciated the support, know that it is free and is carried out on personal time ;)

A support, even a little bit makes a difference for me and continues to bring you answers!

github opencollective

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants