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

Cannot read file './tsconfig-paths/example/base-tsconfig.json' #202

Open
F3n67u opened this issue Mar 25, 2022 · 0 comments
Open

Cannot read file './tsconfig-paths/example/base-tsconfig.json' #202

F3n67u opened this issue Mar 25, 2022 · 0 comments

Comments

@F3n67u
Copy link
Contributor

F3n67u commented Mar 25, 2022

the example/base-tsconfig.json file is missing.

yarn example:api    
yarn run v1.22.10
$ cd example/api && ts-node main.ts
/Users/xxx/Lab/tsconfig-paths/node_modules/ts-node/src/index.ts:820
    return new TSError(diagnosticText, diagnosticCodes);
           ^
TSError: ⨯ Unable to compile TypeScript:
error TS5083: Cannot read file '/Users/xxx/Lab/tsconfig-paths/example/base-tsconfig.json'.

    at createTSError (/Users/xxx/Lab/tsconfig-paths/node_modules/ts-node/src/index.ts:820:12)
    at reportTSError (/Users/xxx/Lab/tsconfig-paths/node_modules/ts-node/src/index.ts:824:19)
    at createFromPreloadedConfig (/Users/xxx/Lab/tsconfig-paths/node_modules/ts-node/src/index.ts:835:36)
    at phase4 (/Users/xx/Lab/tsconfig-paths/node_modules/ts-node/src/bin.ts:469:44)
    at bootstrap (/Users/xxx/Lab/tsconfig-paths/node_modules/ts-node/src/bin.ts:85:10)
    at main (/Users/xxx/Lab/tsconfig-paths/node_modules/ts-node/src/bin.ts:54:10)
    at Object.<anonymous> (/Users/xxx/Lab/tsconfig-paths/node_modules/ts-node/src/bin.ts:717:3)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32) {
  diagnosticCodes: [ 5083 ]
}
error Command failed with exit code 1.
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

1 participant