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

Typescript Errors on Deno 1.16.3 #152

Open
quaos opened this issue Dec 1, 2021 · 0 comments
Open

Typescript Errors on Deno 1.16.3 #152

quaos opened this issue Dec 1, 2021 · 0 comments

Comments

@quaos
Copy link

quaos commented Dec 1, 2021

Issue type:

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

Database system/driver:

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

TypeORM version:

[ ] latest
[ ] @next
[x] 0.2.23-rc10

Deno version:

deno 1.16.3 (release, x86_64-apple-darwin)
v8 9.7.106.5
typescript 4.4.2

Steps to reproduce or a small repository showing the problem:

I have a backend app using TypeORM. Lately I've upgraded Deno to latest version, and bump TypeORM to v0.2.23-rc10. But when trying to run the app I got following errors:

Check file:///Users/q/Projects/qp-www-all/backend/main.ts
error: TS2339 [ERROR]: Property 'getIterator' does not exist on type 'ReadableStream<R>'.
  return res.readable.getIterator();
                      ~~~~~~~~~~~
    at https://deno.land/[email protected]/async/pool.ts:45:23

TS2612 [ERROR]: Property 'manager' will overwrite the base property in 'Repository<Entity>'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.
    readonly manager!: MongoEntityManager;
             ~~~~~~~
    at https://deno.land/x/[email protected]/src/repository/MongoRepository.ts:51:14

TS2612 [ERROR]: Property 'databaseConnection' will overwrite the base property in 'BaseQueryRunner'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.
    protected databaseConnection!: PoolClient;
              ~~~~~~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/src/driver/postgres/PostgresQueryRunner.ts:57:15

TS2612 [ERROR]: Property 'databaseConnection' will overwrite the base property in 'BaseQueryRunner'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.
    protected databaseConnection!: [Connection, () => Promise<void>];
              ~~~~~~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/src/driver/mysql/MysqlQueryRunner.ts:54:15

TS2612 [ERROR]: Property 'options' will overwrite the base property in 'AbstractSqliteDriver'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.
    options!: SqljsConnectionOptions;
    ~~~~~~~
    at https://deno.land/x/[email protected]/src/driver/sqljs/SqljsDriver.ts:23:5

TS2612 [ERROR]: Property 'databaseConnection' will overwrite the base property in 'AbstractSqliteDriver'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.
    databaseConnection!: DB;
    ~~~~~~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/src/driver/sqlite/SqliteDriver.ts:29:5

TS2612 [ERROR]: Property 'sqlite' will overwrite the base property in 'AbstractSqliteDriver'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.
    sqlite!: DenoSqlite;
    ~~~~~~
    at https://deno.land/x/[email protected]/src/driver/sqlite/SqliteDriver.ts:31:5

Found 7 errors.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant