Skip to content

Setup uses useFetch request and hot update reports an error, causing the route to not jump normally #31187

@rczdgbg

Description

@rczdgbg

Environment

  • Operating System: Linux
  • Node Version: v20.12.0
  • Nuxt Version: 3.15.4
  • CLI Version: 3.22.3
  • Nitro Version: 2.10.4
  • Package Manager: pnpm@8.15.6
  • Builder: -
  • User Config: devtools, compatibilityDate
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://codesandbox.io/p/devbox/i18n-tg5twn?file=%2Fpackage.json%3A13%2C3-15%2C27

Describe the bug

Modify the console content to trigger hot update

Additional context

No response

Logs

Uncaught TypeError: Cannot read properties of null (reading 'parentNode')
    at parentNode (runtime-dom.esm-bundler.js?v=0b2e09ed:50:30)
    at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js?v=0b2e09ed:5434:11)
    at ReactiveEffect.run (reactivity.esm-bundler.js?v=0b2e09ed:198:19)
    at ReactiveEffect.runIfDirty (reactivity.esm-bundler.js?v=0b2e09ed:236:12)
    at callWithErrorHandling (runtime-core.esm-bundler.js?v=0b2e09ed:197:33)
    at flushJobs (runtime-core.esm-bundler.js?v=0b2e09ed:405:9)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions