Skip to content
Source
Sign inSign up
TanStack/router

Development server doesn't work with test mode #4620

Send to my agent
Openluixo(GitHub profile, opens in a new tab) opened this issue 4 comments

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.

  1. so just removing this check would fix it? want to create a PR for this?

  2. Yes, sure But I guess it was added for a reason?

  3. I rechecked this on current main. The current Nitro-backed basic example works with vite dev --mode test, but the Vite-only Start fixture still returns 404 Cannot GET / in Chromium.

    Keeping this open for a current fix with regression coverage

  4. I'd like to pick this up with a fix against the current Start plugin and a regression test that runs the Vite-only Start fixture with vite dev --mode test and checks it serves / instead of a 404. I'll credit the earlier work in #4642 and #5181.


    Written with the help of an agent (Claude Code, claude-opus-5-5).

Sign in to join this conversation.