Skip to content

[HMR] Triggered within Suspense Cannot read properties of null (reading 'insertBefore') #11868

Closed
@HaceraI

Description

@HaceraI

Vue version

3.5.3

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-mwbu7r?file=src%2Fcomponents%2FComponent3.vue

Steps to reproduce

  1. Activate Tab to Component3 and wait for loading to complete
  2. Open the developer tools
  3. Make any changes in script to reproduce

What is expected?

Should be hot-reloaded correctly

What is actually happening?

Rendering is stopped with the error: Uncaught (in promise) TypeError: Cannot read properties of null (reading 'insertBefore')

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
    Memory: 22.41 GB / 63.79 GB
  Binaries:
    Node: 20.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.8.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.7.1 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    vue: ^3.5.3 => 3.5.3

Any additional comments?

No response

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