question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeScript compilation fails with version v0.2.27 : error TS2611

See original GitHub issue

Issue type:

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

TypeORM version:

[x] latest [x] 0.2.27

Steps to reproduce or a small repository showing the problem:

The issue appears to be related to MongoEntityManager.d.ts:

[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;
           ~~~~~~~~~~~

Found 1 error(s).

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I manually installed 0.2.26 and compilation succeeded.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
imnotjamescommented, Sep 30, 2020

This should be fixed as of 0.2.28

3reactions
ptanh97commented, Sep 30, 2020

I also ran into the same problem as @Cristiandi. Please fix this.

P.S. The version of TypeScript that I am using is 4.0.3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular - TS2611: 'foo' is defined as a property in class 'A', but ...
The error message is correct as there is a subtle bug here. When you define a property in a parent class, the property...
Read more >
TypeScript errors and how to fix them
Below you find a list of common TypeScript errors along with the buggy code and its fixed version. If you're interested in more...
Read more >
Upgrading from 4.0 to 4.1 - Questions - Babylon.js Forum
I'm seeing lots of errors. The first I'd like to deal with is being able to modify the values in the Matrix.m array....
Read more >
1058578 - Build failure: Typescript compilation fails - Monorail
'F:/ci/chromium/master/src/third_party/devtools-frontend/src/front_end/common/ParsedURL.js' implicitly has an 'any' type. 'tsc --version' in my ...
Read more >
Documentation - TypeScript 3.9
Recent versions of TypeScript (around 3.7) have had updates to the ... this issue by changing the internals of how the compiler and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found