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

Compile Error from mongodb #4659

Closed
beomyongchoi opened this issue Aug 29, 2019 · 3 comments
Closed

Compile Error from mongodb #4659

beomyongchoi opened this issue Aug 29, 2019 · 3 comments

Comments

@beomyongchoi
Copy link

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:

error log =>
error TS2321: Excessive stack depth comparing types 'FindConditions' and 'FindConditions'.
error TS2321: Excessive stack depth comparing types 'MongoRepository' and 'Repository'.
node_modules/typeorm/repository/MongoRepository.d.ts(45,5): error TS2321: Excessive stack depth comparing types '(optionsOrConditions?: string | number | Date | ObjectID | FindOneOptions | Partial | undefined, maybeOptions?: FindOneOptions | undefined) => Promise<...>' and '{ (id?: string | number | Date | ObjectID | undefined, options?: FindOneOptions | undefined): Promise<Entity | undefined>; (options?: FindOneOptions | undefined): Promise<...>; (conditions?: FindConditions<...> | undefined, options?: FindOneOptions<...> | undefined): Promise<...>; }'.

maybe occurred by this =>
https://www.npmjs.com/package/mongodb/v/3.3.2

@Ionaru
Copy link

Ionaru commented Aug 29, 2019

Having the same error, did you find a solution?

@hcharley
Copy link

hcharley commented Aug 31, 2019

@Ionaru @beomyongchoi If you are on a greater version of typescript than 3.5.3, downgrade to 3.5.3. This fixed this problem for me.

Related issues:

#4662

#4427

#4470

@choibeomyong
Copy link

@Ionaru i also downgrade to 3.5.3, and fixed it :)

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

4 participants