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

TypeError: parent is null : Unhandled error during execution of scheduler flush #10459

Closed
nethriis opened this issue Mar 5, 2024 · 1 comment

Comments

@nethriis
Copy link

nethriis commented Mar 5, 2024

Vue version

3.4.21

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-nxra3f

Steps to reproduce

Once everything installed on the stackblitz repo you must :

  • Open preview in new navigator tab
  • Click on "Other" under the "Sidebar" section
  • Reload the page via your navigator reload button
  • Then go back via your navigator back button (not via "go home" link)

What is expected?

The previous page with the layout and content successfully rendered

What is actually happening?

A page with no content and an error :

[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core . 
  at <Default key=0 > 
  at <App>
chunk-2FDUVFJ5.js?v=85590772:9618 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'insertBefore')
    at insert (chunk-2FDUVFJ5.js?v=85590772:9618:12)
    at mountElement (chunk-2FDUVFJ5.js?v=85590772:6994:5)
    at processElement (chunk-2FDUVFJ5.js?v=85590772:6904:7)
    at patch (chunk-2FDUVFJ5.js?v=85590772:6772:11)
    at ReactiveEffect.componentUpdateFn [as fn] (chunk-2FDUVFJ5.js?v=85590772:7462:11)
    at ReactiveEffect.run (chunk-2FDUVFJ5.js?v=85590772:430:19)
    at instance.update (chunk-2FDUVFJ5.js?v=85590772:7586:17)
    at setupRenderEffect (chunk-2FDUVFJ5.js?v=85590772:7596:5)
    at mountComponent (chunk-2FDUVFJ5.js?v=85590772:7364:7)
    at processComponent (chunk-2FDUVFJ5.js?v=85590772:7318:9)

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i9-13900H
    Memory: 16.01 GB / 31.61 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (122.0.2365.66)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    vue: ^3.4.21 => 3.4.21

Any additional comments?

No response

@nethriis
Copy link
Author

nethriis commented Mar 5, 2024

The solution is simple, you just have to wrap the Suspense inside a div and that's it!

See this :
https://stackblitz.com/edit/vitejs-vite-ts8gyi

@nethriis nethriis closed this as completed Mar 5, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant