Subscribe on changes!

Unhandled error during execution of scheduler flush

avatar
Dec 19th 2022

Vue version

3.2.45

Link to minimal reproduction

https://sfc.vuejs.org/#eNp1UstuGzEM/BVWF8dGvGqBnjZ22t6KoEB76OMQ5SBruQ9bKwl6xDGM/fdSWrtIDwEkQBSHnOGAZ/bFueo5IavZJig/uAgBY3L3wgyjsz7CGTy2MEHr7QgLgi6E4Rwu2cVnnuKgA7e7Paq4uAMQRhhlTYgwhg62ufxm8RW1tvDHet28WyyF2fCZjXgoiDg6LSNSBLDpP9yfz6V4mjacovI7GJciPK9H26DeCkZ5wSi14a+qSdpqVfQFr/5TVsUgzPf56byNNp4cVjTrgyWNbTIqDtbk4R/szaGGEP1guluwNUhzWsI5i7iJ/RBABqCe37CT6rR8PDxRvb3LaU/OeQMZRPFE95+UTtud1FVTZODL7GxGNKi09AgzoNAMJqJvpUKY9c7c8Ka2OsshXNEwEfGFF723PvtYC+OTicOIa2U9VhjG9S6ZRqOv9qH++B4efyeEo/TmqYZfppc511waNCmzAb6gIkPJI9tCUD02ieqh1Sn0FfzMxtDRwwH1CSTkhmUQI3WAXeoq+KFRBgTr0JBuQgfCyAh9jC7UnBs8rstnXsh9qKzv+CePzm5LzLP2sl0rzm7ZvIDrUTqawRpa4GKTuCSCYPXVOMGoQY4Fu3KFVr1ioVd1cWg2x9tjKOYIdjWVTX8BAcocPg==

Steps to reproduce

define Object.prototype.xxx in object.ts define global.d.ts in vue file: import '@/utils/object'; the function in object.ts will be executed, but parameter is the function itself!!!

What is expected?

no error

What is actually happening?

the function starts auto run with error param!! notitle

System Info

No response

Any additional comments?

remove the import sentence, everything's fine. Also affect "declare global" error occur only for ''Object.prototype.xxx“, ”String.prototype.yyy“ is OK!

avatar
Dec 19th 2022

Please provide a runnable reproduction. if the SFC playground does not work for you, provide a github repository.

I can't really follow your instructions, sorry.

avatar
Dec 19th 2022

Actually I created two imports: