Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nitro doesn't render loading indicator #1125

Open
hamedniroomand opened this issue Feb 28, 2024 · 1 comment
Open

Nitro doesn't render loading indicator #1125

hamedniroomand opened this issue Feb 28, 2024 · 1 comment

Comments

@hamedniroomand
Copy link

hamedniroomand commented Feb 28, 2024

Environment

  • Operating System: Darwin
  • Node Version: v20.11.0
  • Nuxt Version: 2.17.3
  • CLI Version: 3.10.1
  • Nitro Version: 2.8.1
  • Package Manager: [email protected]
  • Builder: vite
  • User Config: target, ssr, bridge, components, head, serverHandlers, devServerHandlers, devServer, typescript, nitro, buildModules, loadingIndicator
  • Runtime Modules: -
  • Build Modules: (), @nuxt/[email protected]

Reproduction

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
Copy link

Is there a solution for this?

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

No branches or pull requests

2 participants