Skip to content

instanceof RunnableDevEnvironment fails with vite-plus alias #7218

@ultra2207

Description

@ultra2207

Which project does this relate to?

Router

Describe the bug

IF you do vp dev the error occurs. It says Cannot get /. Note that using npm run dev or bun run dev which runs vite under the hood works fine.

The fix in #6982 (comment) fixes the issue.

Your Example Website or App

https://github.com/ultra2207/tanstack_test

Steps to Reproduce the Bug or Issue

  1. git clone into the reproducer
  2. Install Vite-plus
  3. Run vp dev and open the url

Expected behavior

it will show "Cannot GET /"

Screenshots or Videos

No response

Platform

When using Vite-plus cli.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions