Open zhuanyan-wang opened 1 year ago
I am also running into this bug.
Same here, seemed kind of random as well since I wasn't really running any all to large bits of code through it. Took multiple reinstalls of the extension to get rid of the error and get the extension working again for some reason.
I am facing the same issue. What should I do!?
Not sure if this is an isolated case, but recently I found that Mintlify Doc Writer extension no longer works in VS Code due to
cannot destructure property 'requiresAuth' of '(intermediate value)' as it is undefined
.Expected Behavior
Current Behavior
cannot destructure property 'requiresAuth' of '(intermediate value)' as it is undefined
.Context (Environment)
Possible Solution
response
anddata
are always returned.|| {}
when destructuring properties frome?.response?.data
during "generating documentation".Detailed Description
During
t.window.withProgress
"generating documentation", if an error is caught, it will attempt to extract properties likerequiresAuth
frome.response.data
using destructuring assignment:Cannot destructure property 'requiresAuth' of '(intermediate value)'
is thrown ifresponse
ordata
isnull
orundefined
.It should work after you changed the code to: