-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Closed
Labels
Description
Issue description
typeorm peerDependencies doesn't support latest mysql2 3.x
Expected Behavior
https://typeorm.io/#installation says
you can install
mysql2instead as well
mysql2 recently released version 3.x which I'd expect to be able to use.
Actual Behavior
npm install results in errors:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/mysql2
npm ERR! mysql2@"3.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional mysql2@"^2.2.5" from [email protected]
npm ERR! node_modules/typeorm
npm ERR! typeorm@"0.3.11" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/mysql2
npm ERR! peerOptional mysql2@"^2.2.5" from [email protected]
npm ERR! node_modules/typeorm
npm ERR! typeorm@"0.3.11" 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.
...
Steps to reproduce
Try running npm install with the following dependencies specified:
{
"mysql2": "3.0.1",
"typeorm": "0.3.11"
}My Environment
| Dependency | Version |
|---|---|
| Operating System | Windows 11 Pro |
| Node.js version | 18.13.0 |
| Typescript version | 4.9.4 |
| TypeORM version | 0.3.11 |
Additional Context
If I run npm install --legacy-peer-deps then my app/typeorm appears to run fine.
Relevant Database Driver(s)
- aurora-mysql
- aurora-postgres
- better-sqlite3
- cockroachdb
- cordova
- expo
- mongodb
- mysql
- nativescript
- oracle
- postgres
- react-native
- sap
- spanner
- sqlite
- sqlite-abstract
- sqljs
- sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.
rvitaliy, leandro-gomez, rajephon, PerryFinn and m-salman-afzal