Skip to content

tsconfig.json file is missing while initializing a new project on Windows #319

@agussetyar

Description

@agussetyar

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

  1. On Windows, initialize a new project using the TanStack CLI: npx @tanstack/cli@latest create
  2. Follow the prompts and complete the project initialization.
  3. Navigate into the generated project directory.
  4. Verify that no tsconfig.json file exists in the root directory.
  5. Run the build command: npm run build or pnpm run build
  6. Observe that:
tsc only outputs the help/usage banner.
No TypeScript compilation or type-checking is performed because tsconfig.json is missing.
Image [...] Image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions