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

yarn start not working #17

Closed
abdolim opened this issue Aug 29, 2019 · 6 comments
Closed

yarn start not working #17

abdolim opened this issue Aug 29, 2019 · 6 comments

Comments

@abdolim
Copy link

abdolim commented Aug 29, 2019

$ yarn start
yarn run v1.17.3

       ^

TSError: ⨯ Unable to compile TypeScript:
src/services/users.service.ts:13:27 - error TS2589: Type instantiation is excess
ively deep and possibly infinite.

13 this.userRepository = getManager().getRepository(User);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

at createTSError (E:\bank\backend\node_modules\ts-node\src\index.ts:245:12)
at reportTSError (E:\bank\backend\node_modules\ts-node\src\index.ts:249:19)
at getOutput (E:\bank\backend\node_modules\ts-node\src\index.ts:362:34)
at Object.compile (E:\bank\backend\node_modules\ts-node\src\index.ts:395:32)
at Module.m._compile (E:\bank\backend\node_modules\ts-node\src\index.ts:473:
  1. at Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Object.require.extensions.(anonymous function) [as .ts] (E:\bank\backend
    node_modules\ts-node\src\index.ts:476:12)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    error Command failed with exit code 1.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
    and.
@dhuang612
Copy link

front end or backend?
Did you follow the steps on the readme?

@abdolim
Copy link
Author

abdolim commented Aug 30, 2019

backend
yes i followed the steps

@pietrzakadrian
Copy link
Owner

Hello @abdolim,

I'm looking for a solution to your problem. I tested the repository on all operating systems and no problem for now.

@abdolim
Copy link
Author

abdolim commented Sep 3, 2019

i faced another problem

       ^

TSError: ⨯ Unable to compile TypeScript:
src/services/users.service.ts:13:27 - error TS2589: Type instantiation is excess
ively deep and possibly infinite.

13 this.userRepository = getManager().getRepository(User);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

at createTSError (E:\bank\backend\node_modules\ts-node\src\index.ts:245:12)
at reportTSError (E:\bank\backend\node_modules\ts-node\src\index.ts:249:19)
at getOutput (E:\bank\backend\node_modules\ts-node\src\index.ts:362:34)
at Object.compile (E:\bank\backend\node_modules\ts-node\src\index.ts:395:32)
at Module.m._compile (E:\bank\backend\node_modules\ts-node\src\index.ts:473:
  1. at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Object.require.extensions.(anonymous function) [as .ts] (E:\bank\backend
    node_modules\ts-node\src\index.ts:476:12)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    error Command failed with exit code 1.
    info

@sagardave17
Copy link

sagardave17 commented Sep 3, 2019

@pietrzakadrian
I am also facing same issue in windows as well as Ubuntu.

λ yarn start
yarn run v1.17.3
warning package.json: No license field
$ ts-node src/index.ts

C:\laragon\www\bank\backend\node_modules\ts-node\src\index.ts:245
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ⨯ Unable to compile TypeScript:
src/services/users.service.ts:13:27 - error TS2589: Type instantiation is excessively deep and possibly infinite.

13 this.userRepository = getManager().getRepository(User);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

at createTSError (C:\laragon\www\bank\backend\node_modules\ts-node\src\index.ts:245:12)                                       
at reportTSError (C:\laragon\www\bank\backend\node_modules\ts-node\src\index.ts:249:19)                                       
at getOutput (C:\laragon\www\bank\backend\node_modules\ts-node\src\index.ts:362:34)                                           
at Object.compile (C:\laragon\www\bank\backend\node_modules\ts-node\src\index.ts:395:32)                                      
at Module.m._compile (C:\laragon\www\bank\backend\node_modules\ts-node\src\index.ts:473:43)                                   
at Module._extensions..js (internal/modules/cjs/loader.js:770:10)                                                             
at Object.require.extensions.<computed> [as .ts] (C:\laragon\www\bank\backend\node_modules\ts-node\src\index.ts:476:12)       
at Module.load (internal/modules/cjs/loader.js:628:32)                                                                        
at Function.Module._load (internal/modules/cjs/loader.js:555:12)                                                              
at Module.require (internal/modules/cjs/loader.js:666:19)                                                                     

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

@pietrzakadrian
Copy link
Owner

done. f0948ba

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