Skip to content
Source
Sign inSign up
TanStack/router

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

Send to my agent
Closedclawrence121(GitHub profile, opens in a new tab) opened this issue 2 comments

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

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

  2. schiller-manuel(GitHub profile, opens in a new tab) added labelsneeded-for-start-stable

Sign in to join this conversation.