Run deno task repl
or deno repl --unstable --no-check --eval-file=./dir1/mod1.ts
with mod1.ts
being:
deno-repl-import-repro/dir1/mod1.ts
Line 1 in 1234567
and mod2.ts
being:
deno-repl-import-repro/dir2/mod2.ts
Line 1 in 1234567
You should see something like:
❯ deno repl --unstable --no-check --eval-file=./dir1/mod1.ts
error in --eval-file file ./dir1/mod1.ts. Uncaught TypeError: Module not found "file:///Users/curputer3/dev/me/dir2/mod2.ts".
at async <anonymous>:2:1
Deno 1.25.2
exit using ctrl+d or close()
>
Compared to deno task repl:quack
or deno repl --unstable --no-check --eval='await import("./dir1/mod1.ts")'
Which shows:
❯ deno repl --unstable --no-check --eval='await import("./dir1/mod1.ts")'
QUACK
Deno 1.25.2
exit using ctrl+d or close()
>