denolib / typeorm

Forked from https://github.com/typeorm/typeorm
MIT License
120 stars 16 forks source link

TypeORM is using wrong driver #76

Open tellmewhy-sir opened 4 years ago

tellmewhy-sir commented 4 years ago

Issue type:

[ ] question [x] bug report [ ] feature request [ ] documentation issue

Database system/driver:

[ ] cordova [ ] mongodb [ ] mssql [ ] mysql / mariadb [ ] oracle [x] postgres [ ] cockroachdb [ ] sqlite [ ] sqljs [ ] react-native [ ] expo

TypeORM version:

[x] latest [ ] @next [ ] 0.x.x (or put your version here)

Steps to reproduce or a small repository showing the problem:

I've set up my project for a Postgres database but it seems like TypeORM is trying to use the SQL Lite Driver which keeps throwing an error.

ormconfig.json

{
   "type": "postgres",
   "host": "localhost",
   "port": 5432,
   "username": "[USERNAME]",
   "password": "[PASSWORD]",
   "database": "[DATABASE]",
   "synchronize": true,
   "logging": false,
   "entities": [
      "entity/**/*.ts"
   ],
   "migrations": [
      "migration/**/*.ts"
   ],
   "subscribers": [
      "subscriber/**/*.ts"
   ],
   "cli": {
      "entitiesDir": "entity",
      "migrationsDir": "migration",
      "subscribersDir": "subscriber"
   }
}

The error:

Screenshot 2020-06-20 16 31 55

I get this just from following the Quick Start instructions

uki00a commented 4 years ago

@tellmewhy-sir Thanks for the report! denolib/typeorm@v0.2.23-rc4 does not support the latest version of Deno. Can you update it to v0.2.23-rc5?