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
Deno.readTextFileSync(newURL("./b.txt",import.meta.url));// worksawaitfetch(newURL("./b.txt",import.meta.url));// doesn't work
deno -A a.ts # works
deno compile -A --include b.txt a.ts
Check file:///home/mrcool/dev/deno/lab/bug/a.ts
Compile file:///home/mrcool/dev/deno/lab/bug/a.ts to a
Embedded Files
a
├── a.ts (45B)
└── b.txt (0B)
Size: 45B
./a
error: Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource
await fetch(new URL("./b.txt", import.meta.url));
^
at opFetchSend (ext:deno_fetch/26_fetch.js:90:10)
at mainFetch (ext:deno_fetch/26_fetch.js:189:18)
at ext:deno_fetch/26_fetch.js:408:11
at new Promise (<anonymous>)
at fetch (ext:deno_fetch/26_fetch.js:367:20)
at file:///tmp/deno-compile-a/a.ts:2:7
The text was updated successfully, but these errors were encountered:
Version: Deno 2.1.10
a.ts
The text was updated successfully, but these errors were encountered: