Skip to content

Nitro v2 plugin causing _shell.html to not build in spa mode #5426

Closed

Description

@clawrence121

Which project does this relate to?

Router/Start

Describe the bug

Hi there, I'm having issues with SPA mode then using the Nitro plugin.

When the plugin is enabled, no _shell.html file is generated, but disabling it _shell.html is generated as expected.
This is using start and router versions 1.132.51 and NPM.

I have also tried with Nitro 3 and I see the same behaviour.

I have also tried changing some of the spa mode prerender settings, and haven't seen it make a difference (eg different mask path).

Your Example Website or App

https://github.com/clawrence121/tss-spa-mode-not-rendering-shell

Steps to Reproduce the Bug or Issue

  1. Clone example repo
  2. Run npm install
  3. Run npm run build, _shell.html is generated
  4. Modify vite.config.ts to enable either Nitro v2 or v3 plugins
  5. Run npm run build, no _shell.html is generated

Expected behavior

_shell.html to be generated when spa mode is enabled with Nitro.

Screenshots or Videos

Image Image

Platform

  • Router / Start Version: 1.132
  • OS: MacOS 15.6.1
  • Bundler: Vite
  • Bundler Version: 7.1.7

Additional context

No response

Activity

  1. jacobgad commented on Oct 24, 2025

    @jacobgad

    I am having the same problem, did this issue get resolved?

  2. added a commit that references this issue on Oct 29, 2025
    166379c
  3. schiller-manuel commented on Oct 29, 2025

    @schiller-manuel
    Collaborator

    tested #5682 with nitro-3, works now

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