-
-
Notifications
You must be signed in to change notification settings - Fork 128
Open
Description
Which 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
Metadata
Metadata
Assignees
Labels
No labels