Development server doesn't work with test mode
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
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
- Run basic example with
vite dev --mode test - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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