Skip to content

Get a bug of 'Unhandled error during execution of scheduler flush. This is likely a Vue internals bug.'Β #11018

@BlandCool

Description

@BlandCool

Vue version

3.4.21

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-lekc3d?file=src%2Frouter%2Findex.js

Steps to reproduce

  1. Open the link.
  2. Press F12 to get the warnings of console.

What is expected?

The warning of 'watch' or other warning to prompt us to solve the wrong import.

What is actually happening?

Plenty of warnings which includes an odd bug of Vue internals bug.

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 AMD Ryzen 9 5900HX with Radeon Graphics        
    Memory: 12.08 GB / 31.86 GB
  Binaries:
    Node: 20.10.0 - D:\Program Files\nodejs\node.EXE
    npm: 10.7.0 - D:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    vue: ^3.4.21 => 3.4.27

Any additional comments?

I'm writing my project with Vue and I find an odd bug.
I carelessly import the 'watch' from less instead of 'vue', alright it's a wrong import.
Meanwhile I find the blank page and check the report of the console which gave me some warnings.
A special warning said

"[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 . "

So I opened this isssue to help improving the vue.

All in all,this bug is caused by wrong import for 'watch' from less with router working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions