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 error: TS2611: 'queryRunner' is defined as a property in class 'EntityManager', but is overridden here in 'MongoEntityManager' as an accessor. #6806

Closed
mschnee opened this issue Sep 29, 2020 · 5 comments

Comments

@mschnee
Copy link

mschnee commented Sep 29, 2020

Projects using typeorm@0.2.27 fail to build due to an error:

node_modules/typeorm/entity-manager/MongoEntityManager.d.ts:27:9 - error TS2611: 'queryRunner' is defined as a property in class 'EntityManager', but is overridden here in 'MongoEntityManager' as an accessor.

27     get queryRunner(): MongoQueryRunner;
           ~~~~~~~~~~~

This is fixed my reverting to 0.2.26

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

Database system/driver:

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

TypeORM version:

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

TypeScript version v4.0.3

@imnotjames
Copy link
Contributor

We aren't using typescript 4.0 yet - does it work with typescript 3.9?

@wy193777
Copy link
Contributor

I tested 0.2.27 on typescript 3.9 and it works for me.

@imnotjames
Copy link
Contributor

That's a bummer. Is there a configuration option we can be using to prevent that? Or is it just a limitation that's imposed in 4.0 that's not in 3.9?

Is 4.0 backwards compatible?

@imnotjames
Copy link
Contributor

I think this is a duplicate of #6805

@imnotjames
Copy link
Contributor

imnotjames commented Sep 30, 2020

I'll be closing this issue in favor of #6805 - please continue the discussion there

Cheers

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

3 participants