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 find tsconfig/tsc.json [5.2.2 -> 5.3.2] #56526

Closed
ashumylo opened this issue Nov 24, 2023 · 1 comment
Closed

Cannot find tsconfig/tsc.json [5.2.2 -> 5.3.2] #56526

ashumylo opened this issue Nov 24, 2023 · 1 comment

Comments

@ashumylo
Copy link

πŸ”Ž Search Terms

tsconfig/tsc.json

πŸ•— Version & Regression Information

  • This changed between versions 5.2.2 and 5.3.2

⏯ Playground Link

No response

πŸ’» Code

{
  "$schema": "https://json.schemastore.org/tsconfig",
  "extends": "tsconfig/tsc.json",
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "dist"
  },
  "include": ["**/*.ts"],
  "exclude": ["node_modules", "cdk.out", "**/*.d.ts"]
}

πŸ™ Actual behavior

I' getting the following error during npx ts-node --prefer-ts-exts bin/cdk.ts :

TSError: β¨― Unable to compile TypeScript:
error TS6053: File 'tsconfig/tsc.json' not found.

    at createTSError (/opt/project/node_modules/.pnpm/ts-node@10.9.1_@types+node@20.9.3_typescript@5.3.2/node_modules/ts-node/src/index.ts:859:12)
    at reportTSError (/opt/project/node_modules/.pnpm/ts-node@10.9.1_@types+node@20.9.3_typescript@5.3.2/node_modules/ts-node/src/index.ts:863:19)
    at createFromPreloadedConfig (/opt/project/node_modules/.pnpm/ts-node@10.9.1_@types+node@20.9.3_typescript@5.3.2/node_modules/ts-node/src/index.ts:874:36)
    at phase4 (/opt/project/node_modules/.pnpm/ts-node@10.9.1_@types+node@20.9.3_typescript@5.3.2/node_modules/ts-node/src/bin.ts:543:44)
    at bootstrap (/opt/project/node_modules/.pnpm/ts-node@10.9.1_@types+node@20.9.3_typescript@5.3.2/node_modules/ts-node/src/bin.ts:95:10)
    at main (/opt/project/node_modules/.pnpm/ts-node@10.9.1_@types+node@20.9.3_typescript@5.3.2/node_modules/ts-node/src/bin.ts:55:10)
    at Object.<anonymous> (/opt/project/node_modules/.pnpm/ts-node@10.9.1_@types+node@20.9.3_typescript@5.3.2/node_modules/ts-node/src/bin.ts:800:3)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32) {
  diagnosticCodes: [ 6053 ]
}

tsc.json is placed in packages/tsconfig/tsc.json and changing tsconfig "extends" to an absolute path ("../packages/tsconfig/tsc.json" or "node_modules/tsconfig/tsc.json") solves an issue.

πŸ™‚ Expected behavior

npx ts-node --prefer-ts-exts bin/cdk.ts should work as it did in 5.2.2 version.

Additional information about the issue

pnpm is used as a package manager for the project.

@Andarist
Copy link
Contributor

Likely a duplicate of #56492

@ashumylo ashumylo closed this as not planned Won't fix, can't repro, duplicate, stale Nov 24, 2023
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