vitest: Error thrown in vscode debugger Exception has occurred: TypeError: getPromiseDetails is not a function
#7342
Labels
Exception has occurred: TypeError: getPromiseDetails is not a function
#7342
Hello,
I am running into the error
Exception has occurred: TypeError: getPromiseDetails is not a function
when running the vscode debugger.The error is thrown in
node_modules/.pnpm/[email protected]/node_modules/loupe/lib/promise.js
.However, it works when I run
pnpm ./node_modules/vitest/vitest.mjs
.launch.json
vitest version:
[email protected]
vscode version:
call stack
I think the issue is loupe is trying to access
getPromiseDetails
, an internal function that was officially removed in node 16. Currently,process.binding('util')
only gives the following:['isExternal', 'isDate', 'isNativeError', 'isRegExp', 'isAsyncFunction', 'isPromise', 'isMap', 'isSet', 'isMapIterator', 'isSetIterator', 'isArrayBuffer', 'isDataView', 'isAnyArrayBuffer', 'isArrayBufferView', 'isTypedArray', 'isUint8Array']
A few questions I have,
Any insights is greatly appreciated.
The text was updated successfully, but these errors were encountered: