nuxt / bridge

🌉 Experience Nuxt 3 features on existing Nuxt 2 projects
MIT License
272 stars 29 forks source link

Nitro doesn't render loading indicator #1125

Open hamedniroomand opened 9 months ago

hamedniroomand commented 9 months ago

Environment

if you enabled the nitro feature, the loadingIndicator or spaloadingtemplate are not rendered during the first page load in a non-ssr app.

Describe the bug

It's probably because of https://github.com/nuxt/bridge/blob/main/packages/bridge/src/runtime/nitro/renderer.ts#L106

Additional context

It doesn't matter if you have Vite enabled or not. In any case, your HTML file defined for loading is not loaded.

Logs

No response

farahats9 commented 3 months ago

Is there a solution for this?