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 run --import-map=vendor/import_map.json mod.ts fails to resolve dependencies after dependencies vendor'd via deno vendor --import_map=....
Error: # error: Relative import path "oak/mod.ts" not prefixed with / or ./ or ../
Discussion
works:
$ deno run --import-map import_map.json -A --unstable /app/src/bin.ts
doesn't work:
# vendor the deps, using the ~same flags as above
$ deno vendor --import-map=import_map.json /app/src/bin.ts
# run with vendored
$ deno run --import-map=/app/vendor/import_map.json --unstable --allow-env --allow-net /app/src/bin.ts
# yields:
# error: Relative import path "oak/mod.ts" not prefixed with / or ./ or ../
Problem
deno run --import-map=vendor/import_map.json mod.ts
fails to resolve dependencies after dependencies vendor'd viadeno vendor --import_map=...
.Error:
# error: Relative import path "oak/mod.ts" not prefixed with / or ./ or ../
Discussion
works:
doesn't work:
Reproduction
Easy!
git clone https://github.com/cdaringe/deno-emit-esm-server.git
cd deno-emit-esm-server
git checkout b23071be397a2d2e7e7ca53b9df0832de3241bb9
deno run --import-map=import_map.json --unstable --allow-env --allow-net ./src/bin.ts
(no output)curl http://localhost:7777/github/denoland/deno_std/main/uuid/mod.ts
(observe JS emitted to stdout)deno vendor --import-map=import_map.json ./src/bin.ts
deno run --import-map=vendor/import_map.json --unstable --allow-env --allow-net ./src/bin.ts
The text was updated successfully, but these errors were encountered: