bridge icon indicating copy to clipboard operation
bridge copied to clipboard

Nitro is causing page to not load at the top on an iPhone

Open ChadLefort opened this issue 3 years ago • 0 comments

Environment

  • Operating System: Linux
  • Node Version: v16.16.0
  • Nuxt Version: 2.16.0-27720022.54e852f
  • Nitro Version: 0.5.4
  • Package Manager: [email protected]
  • Builder: webpack
  • User Config: loadingIndicator, alias, ssr, target, head, loading, generate, serverHandlers, devServerHandlers, bridge, buildModules
  • Runtime Modules: -
  • Build Modules: (), @nuxt/[email protected]

Reproduction

https://codesandbox.io/p/github/ChadLefort/nuxt-bridge/v2-bridge-codesandbox

Describe the bug

Only when on an actual iPhone if the user loads the page it will not load at the very top. I've only noticed this issue on an actual iPhone device and it works fine on Android or desktop browsers.

I only see this when ssr: false and nirto: true is set in the config. I have seen it happen for both vite and webpack and also when running nuxi generate or nuxi dev. Currently the only way for me to resolve this is turn off nitro and go back to using nuxt generate.

Additional context

Here is a short video demonstrating:

https://imgur.com/HVsaOph

Logs

No response

ChadLefort avatar Sep 26 '22 20:09 ChadLefort