TanStack / TanStack/router

Development server doesn't work with test mode

Open
#4,620 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

start
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

Hello,
I've updated to devinxi version of Tanstack Router and found out dev server doesn't work with Vite's --mode test.
I use test mode to enable specific instrumentation in test environment (Playwright) and generally believe this kind of change should be justified with a comment or removed.

Steps to Reproduce the Bug or Issue
  1. Run basic example with vite dev --mode test
  2. Verify dev server doesn't work
Expected behavior

I expect dev server to still work with test mode.

Screenshots or Videos

No response

Platform
  • Router / Start Version: 1.125.6
  • OS: -
  • Browser: -
  • Browser Version: -
  • Bundler: Vite
  • Bundler Version: -
Additional context

This change was made during devinxi change and is located in start-plugin-code module.

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

Start with packages/start-plugin-core/src/dev-server-plugin/plugin.ts around line 20, then reproduce the issue in the basic example with vite dev --mode test. Trace why test mode prevents the development server from working and verify that the basic example starts successfully with that mode enabled.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.