Unhandled error during execution of scheduler flush
Vue version
3.2.45
Link to minimal reproduction
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!!
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!
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.