Skip to content

[Bug?]: TypeError in lazyRoute.js with Vite 8 (Dev Mode)聽#2154

Description

@moonhuntercode

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 馃槸

When running a SolidStart app with Vite 8 in dev mode (npm run dev), the app crashes immediately when loading any lazy-loaded route.
The terminal shows a TypeError in lazyRoute.js because manifest.inputs[component.src].import() returns undefined and .catch() is called on it.

Expected behavior 馃

Lazy-loaded routes should resolve correctly in dev mode.
The SSR manifest should provide a valid Promise from router.internals.devServer.ssrLoadModule, allowing routes to load without crashing.

Steps to reproduce 馃暪

  1. Create a new SolidStart project with @solidjs/start@1.3.2 and vite@8.0.14.
  2. Run npm install.
  3. Run npm run dev.
  4. Open http://localhost:3000 in the browser.
  5. Observe the crash in terminal and 500 error in browser.

Context 馃敠

I am trying to develop a SolidStart application locally on Windows 11 with Vite 8.
This bug blocks all local development in dev mode, making it impossible to test lazy routes.
In production (npm run build) the app works, but development workflow is broken until patched.
You can see in https://github.com/moonhuntercode/solidstart-vite8-bug-repro public repo with more details馃榿

Your environment 馃寧

System:
  OS: Windows 11
  CPU: Intel i7
Binaries:
  Node: 24.14.1
  npm: 10.8.2
npmPackages:
  @solidjs/start: 1.3.2
  vite: 8.0.14
  vite-plugin-solid: 2.11.12
  @solidjs/router: 0.16.1

Activity

  1. brenelz commented on Jul 20, 2026

    @brenelz
    Contributor

    Can you upgrade to the new solid start beta and see if that resolves your issue?

  2. birkskyum commented on Jul 25, 2026

    @birkskyum
    Member

    Bug in vinxi's lazyRoute.js, confirmed locally that it works with SolidStart v2 rc.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions