TanStack / TanStack/router

Start: during build, warnings for imports from external modules that are never used

Open
#5,721 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.1k
Forks
1.9k
Avg merge
1d 20h
Merged PRs (30d)
143

Description

Which project does this relate to?

Start

Describe the bug

During vite build, getting these warnings in a "Hello World" SSG app:

Image
Your Example Website or App

https://stackblitz.com/edit/github-rqepxhow

Steps to Reproduce the Bug or Issue

Just run npm run build

Expected behavior

Expect to have no warnings

Screenshots or Videos

No response

Platform
  • Router Version: 1.134.4
  • Start Version: 1.134.7
  • OS: Windows 11
  • Bundler: Vite
  • Bundler Version: 7.1.12
Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in the linked StackBlitz app by running npm run build with the reported Start and Vite versions. Trace the Start build path that produces warnings for unused imports from external modules, then verify that the Hello World SSG build completes without those warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vite
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.