Skip to content

error TS2321: Excessive stack depth comparing types 'MongoRepository<Entity>' and 'Repository<Entity>'. node_modules/typeorm/repository/MongoRepository.d.ts(12,22): error TS2589: Type instantiation is excessively deep and possibly infinite. node_modules/typeorm/repository/MongoRepository.d.ts(45,5): error TS2321: Excessive stack depth comparing types '(optionsOrConditions?: string | number | Date | ObjectID | FindOneOptions<Entity> | Partial<Entity>, maybeOptions?: FindOneOptions<Entity>) => Promise<Entity>' and '{ (id?: string | number | Date | ObjectID, options?: FindOneOptions<Entity>): Promise<Entity>; (options?: FindOneOptions<Entity>): Promise<Entity>; (conditions?: FindConditions<Entity>, options?: FindOneOptions<...>): Promise<...>; }'. #33259

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

Closed
enzigma-monika-pingale opened this issue Sep 5, 2019 · 3 comments

Comments

@enzigma-monika-pingale
Copy link

enzigma-monika-pingale commented Sep 5, 2019

TypeScript Version: 3.5.3
Installed above typescript version. Work on local environment.
When we ran docker command to build project it throws above exception.
Guide us to resolve this issue ASAP.

@enzigma-ajinkya-kumbhar
Copy link

This issue is quite similar to #29112
I have tried the solutions mentioned in this...still it did not worked for me.

@enzigma-monika-pingale
Copy link
Author

Following solution solved this issue for time being:
Added typescript as a global dependency.
For this added following commands inside docker-file.
RUN npm i -g [email protected]
RUN npm i -D [email protected]

@enzigma-ajinkya-kumbhar
Copy link

Worked for me too.

RUN npm i -g [email protected]
RUN npm i -D [email protected]

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

2 participants