`tsconfig.json` file is missing while initializing a new project on Windows #319
Send to my agentWhich project does this relate to?#
Create Tanstack App
Describe the bug#
When initializing a new project using @tanstack/cli create on Windows, the generated project does not include a tsconfig.json file in the root directory.
Because of this, the TypeScript compiler (tsc) does not run as expected during the build process. When npm run build is executed, the build command technically exits successfully, but tsc does not perform any compilation. Instead, it only prints the TypeScript help banner, which happens when no tsconfig.json is found in the current working directory.
Your Example Website or App#
Steps to Reproduce the Bug or Issue#
- On Windows, initialize a new project using the TanStack CLI:
npx @tanstack/cli@latest create - Follow the prompts and complete the project initialization.
- Navigate into the generated project directory.
- Verify that no tsconfig.json file exists in the root directory.
- Run the build command:
npm run buildorpnpm run build - Observe that:
tsc only outputs the help/usage banner.
No TypeScript compilation or type-checking is performed because tsconfig.json is missing.
Expected behavior#
tsconfig.json file should be generated in the project root by default as the other operating system do.
Screenshots or Videos#
No response
Platform#
- OS: Microsoft Windows 10 Pro
- Version: 10.0.19045 N/A Build 19045
Additional context#
No response
tannerlinsley closed this
Correction: fixed by PR #330. The Windows path normalization updates now cover missing-drive-letter and separator normalization in file-helpers to keep tsconfig generation stable, and tests were added in packages/create/tests/file-helper.test.ts for this case.
Sign in to join this conversation.
Closing as fixed by #330. The Windows path normalization updates now cover missing-drive-letter and separator normalization in , and tests were added in for this case.