Is there any way to trace where permissions prompts are coming from?
I'm running some code through Deno and its prompting for some permissions. How can I find out where these are coming form?
9 Replies
not 100% sure, but I think if you run without --prompt ( --no-prompt was removed in favour of --prompt IIRC ), or decline permission, doesn't it throw an exception with a stack trace pointing to the culprit?
I'm getting the following and I want to know what code is causing the prompt so I can fix it:
I can disable the prompt with
--no-prompt
but I'd like to fix this so others don't need to use that optionwhat happens if you deny? should throw an permission error. oh yeah, if the culprit is inside try catch block, it can be silent. so, yeah I'm dumb hopefully someone else can answer if it's possible to see the origin of permission prompt
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
The only place I call
Deno.cwd()
, I query that permissions are granted first.
Best guess is that this comes from an npm dependency
But without a stack trace I'm not sureUnknown User•2y ago
Message Not Public
Sign In & Join Server To View
I'm guessing compat is the cause
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Deno bundle doesn't work with npm dependencies yet