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
Excessive stack depth comparing types 'FindConditions<?>' and 'FindConditions<?>' (with solution) #4427
Comments
i fix this problem by run |
@mophy thx for the suggestion. I'm not the repo maintainer but I think you should create a PR. It's an easy one to merge and hopefully, we can get someone to accept it quickly 😄 |
I've got this issue with |
|
@haydennyyy, there's a workaround in PR #4470 |
This is probably related to this issue in Typescript: microsoft/TypeScript#21592 |
It seems that a Typescript fix is coming, I can confirm that it works with the 3.7.0-insiders.20190902 version. |
In compile by typescript 3.6.2 , this problem is encountered, but there is no problem in 3.4.5 version! |
Looks like issue was resolved some time ago. |
Hi guys,
is causing
when I'm using
this doesn't help
moreover, it doesn't work with that either
in version 0.2.18 there is no issue with that code |
@gbar did you ever figure out a solution? I'm running into the same issue in 0.2.36 |
in my case going from 0.2.37 -> 0.2.45 fixed the issue |
Issue type:
[ ] question
[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)Steps to reproduce or a small repository showing the problem:
Compile any code that will use the
FindConditions
type, and the error occurs:error TS2321: Excessive stack depth comparing types 'FindConditions<?>' and 'FindConditions<?>'.
TypeScript versions which will trigger this error: 3.2.4, 3.5.3
TypeScript versions which will NOT trigger this error: <=3.1.6
According to this link, this can be fixed, just modify the
FindConditions.d.ts
file fromto
After this change, TypeScript 3.2.4 and 3.5.3 will not trigger that error, and TypeScript 3.1.6 works well too.
I can submit a PR if needed.
The text was updated successfully, but these errors were encountered: