Reputation: 11
I normally was using "typeorm": "^0.2.45", and "@nestjs/typeorm": "^8.0.3", for my projects and it was working in a good way with my boilerplate but today I'm getting this error; MissingDriverError: Wrong driver: "undefined" given. Supported drivers are: "aurora-data-api", "aurora-data-api-pg", "better-sqlite3", "capacitor", "cockroachdb", "cordova", "expo", "mariadb", "mongodb", "mssql", "mysql", "nativescript", "oracle", "postgres", "react-native", "sap", "sqlite", "sqljs". before this error when I was installing my package.json I got some errors about confilict of this packages versions so is there anybody who can say how to solve this error. here is the my .env file and main.ts file and my error enter image description here
enter image description here enter image description here
Upvotes: 1
Views: 1010
Reputation: 95
ormconfig
support was deprecated on version 0.3.0
and will be removed on 0.4.0
.
Check this out https://github.com/typeorm/typeorm/releases?page=
Upvotes: 0