TypeScript compilation fails with version v0.2.27 : error TS2611
See original GitHub issueIssue 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:
- Created 3 years ago
- Reactions:9
- Comments:10 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be fixed as of 0.2.28
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.