You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Uncaught PermissionDenied: read access to "./src", run again with the --allow-read flag
at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
at Object.sendSync ($deno$/ops/dispatch_json.ts:72:10)
at new FsWatcher ($deno$/ops/fs_events.ts:15:16)
at Object.watchFs ($deno$/ops/fs_events.ts:38:10)
at file:///home/pomatti/projects/dumb-deno/app.ts:1:22
However if i change the first line of the script to use an absolute path it works fine:
@zhanyuzhang if I put the absolute path it works, and also the initial error message says "read access". It is something to do with the fact that I specifying the path in --allow-read.
The following code will fail when running with
deno run --allow-read=./src app.ts
Error:
However if i change the first line of the script to use an absolute path it works fine:
I guess
Deno.watchFs()
must allow relative paths when--allow-read
is informed on startup?The text was updated successfully, but these errors were encountered: