Skip to content

Current TanStack Start template fails with vite-tsconfig-paths@^6.0.2, works with ^5.1.4 #273

@uttk

Description

@uttk

Which project does this relate to?

Create Tanstack App

Describe the bug

When scaffolding a new project with pnpm create @tanstack/start@latest, the generated app installs vite-tsconfig-paths@^6.0.2 by default, but using the project results in an error.

If I downgrade vite-tsconfig-paths to ^5.1.4, the issue disappears and the project works as expected.

Your Example Website or App

N/A

Steps to Reproduce the Bug or Issue

  1. Create a new app:
  • pnpm create @tanstack/start@latest my-app
  1. cd my-app
  2. Install dependencies:
  • pnpm install
  1. Run the command that triggers the error (e.g. pnpm dev / pnpm build / pnpm preview):
  • pnpm run dev
  1. Observe the error (see “Describe the bug”)

Expected behavior

The import alias is resolved correctly without any errors occurring.

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 143.0.7499.170

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