Skip to content

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

Closed

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

Activity

  1. jherr commented on Jan 1, 2026

    @jherr
    Collaborator

    I'm not seeing this. What operating system are you on?

  2. uttk commented on Jan 1, 2026

    @uttk
    Author

    @jherr

    Sorry, I provided the incorrect reproduction steps. Here are the correct ones:

    1.pnpm create @tanstack/start@latest
    2. What would you like to name your project? --> Type project name ( e.g. "my-app" )
    3. Would you like to use Tailwind CSS? --> Yes
    4. Select toolchain --> Biome
    5. Select deployment adapter --> Cloudflare
    6. What add-ons would you like for your project? --> Only select「 Drizzle 」
    7. Would you like any examples? --> Select nothing, Enter.
    8. Drizzle: Database Provider --> PostgreSQL
    9. cd my-app && pnpm dev
    10. Observe the error ( see “Error message” )

    Error message

    (!) Failed to run dependency scan. Skipping dependency pre-bundling. Error: The following dependencies are imported but could not be resolved:
    
      @/data/demo.punk-songs (imported by /Users/uttk/Documents/playgrounds/my-app/src/routes/demo/start.ssr.spa-mode.tsx)
      @/db (imported by /Users/uttk/Documents/playgrounds/my-app/src/routes/demo/drizzle.tsx)
      @/db/schema (imported by /Users/uttk/Documents/playgrounds/my-app/src/routes/demo/drizzle.tsx)
    
    Are they installed?
        at file:///Users/uttk/Documents/playgrounds/my-app/node_modules/.pnpm/vite@7.3.0_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.2_tsx@4.21.0/node_modules/vite/dist/node/chunks/config.js:31902:33
        at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
        at async file:///Users/uttk/Documents/playgrounds/my-app/node_modules/.pnpm/vite@7.3.0_@types+node@22.19.3_jiti@2.6.1_lightningcss@1.30.2_tsx@4.21.0/node_modules/vite/dist/node/chunks/config.js:34110:15
    

    Platform

    OS: macOS
    Browser: Chrome
    Version: 143.0.7499.170
    Node.js: v22.12.0

  3. jherr commented on Jan 1, 2026

    @jherr
    Collaborator

    Ah, ok, that's quite a bit of missing context. Thank you. I'll get on fixing it.

  4. vkalahas commented on Jan 9, 2026

    @vkalahas
    Contributor

    I just submitted a PR that solves these issues since I had them also!

  5. vkalahas commented on Jan 9, 2026

    @vkalahas
    Contributor

    Solves Drizzle demo issues: #277
    Solves path aliasing issues: #278

  6. tannerlinsley commented on Feb 13, 2026

    @tannerlinsley
    Member

    Fixed by PR #355. React base template now uses vite-tsconfig-paths ^5.1.4, matching the known working range for the reported alias resolution failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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