Skip to content

TanStack Start virtual module fails to load via reverse proxy (vite dev server, since v1.167.17) #7227

@fcannizzaro

Description

@fcannizzaro

Which project does this relate to?

Start

Describe the bug

Since the v1.167.17 version there is bug on TanStack Start virtual module loading when using the vite dev server behind a reverse proxy:

GET https://app.localhost/@id/__x00__%23tanstack-start-plugin-adapters net::ERR_ABORTED 400 (Bad Request)Understand this error

(index):1 Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://app.localhost/@id/virtual:tanstack-start-client-entry

(same as #7155)

Your Example Website or App

https://github.com/fcannizzaro/tanstack-start-virtual-module-error

Steps to Reproduce the Bug or Issue

  1. Open https://app.localhost
  2. Check console for:
GET https://app.localhost/@id/__x00__%23tanstack-start-plugin-adapters net::ERR_ABORTED 400 (Bad Request)Understand this error

(index):1 Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://app.localhost/@id/virtual:tanstack-start-client-entry

Expected behavior

No errors on virtual module loading, like the relative non-proxied version (http://localhost:3000)

Screenshots or Videos

No response

Platform

  • Start Version: 1.167.4
  • OS: macOS
  • Browser: any
  • Browser Version: -
  • Bundler: vite
  • Bundler Version: 8.0.7

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions