nuxt: TypeError: Cannot read properties of null (reading 'parentNode')

Environment

  • Operating System: Linux
  • Node Version: v16.17.0
  • Nuxt Version: 3.6.1
  • Nitro Version: 2.5.1
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: devtools, modules, app, imports
  • Runtime Modules: @pinia/nuxt@0.4.11
  • Build Modules: -

Reproduction

  1. Open https://vs3g68-3000.csb.app/foo
  2. click on Bar Layout link

Describe the bug

Layout loading fails

Additional context

See also #13309 (possibly not related)

Logs

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 6
  • Comments: 16 (7 by maintainers)

Most upvoted comments

@danielroe What would be the right way to fix the issue I’m dealing with (redirecting to the same route but adding/changing a query param in setup when an API error occurs)? I don’t seem to be implementing any transitions when navigating to the route as far as I know.

Closing here as most likely resolved via Vue 3.4.0

I’ll open another issue that reflects what @ilyaDegtyarenko posted.

@dargmuesli For some reason my codesandbox has been reset 😦 In my current project the beta.3 seems to solve the issue. However, the project is quite complex and I’m not sure if I can rely on this quick test. I’ll try to get the repro back and let you know how it behaves there.

The issue isn’t layouts as such, but rerendering a node within suspense while a transition is taking place. In that PR’s case, I think it might be because you are navigating within the setup function.

@danielroe Is it really the same Vue bug as in #22353? I don’t use multiple layouts there and still get this error.