-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Steps to reproduce:
- Create
deno.jsonwith:
{
"imports": {
"mapped": "./foo.ts"
}
}- Create file
foo.tswith:
console.log("hey");- Create file
main.tswith:
import { ResolutionMode, Workspace } from "@deno/loader";
const loader = await new Workspace().createLoader({
entrypoints: ["mapped"],
});
const spec = await loader.resolve("mapped", undefined, ResolutionMode.Import);
await loader.load(spec);- Run
deno run -A main.ts
Output:
$ deno run -A main.ts
error: Uncaught (in promise) Error: Module not found "file:///Users/marvinh/dev/denoland/esbuild-plugin-deno/mapped".
const ret = new Error(getStringFromWasm0(arg0, arg1));
^
at __wbindgen_error_new (https://jsr.io/@deno/loader/0.1.0/src/lib/rs_lib.internal.js:983:15)
at <anonymous> (wasm://wasm/0138c452:1:4060238)
at <anonymous> (wasm://wasm/0138c452:1:3861913)
at <anonymous> (wasm://wasm/0138c452:1:408120)
at <anonymous> (wasm://wasm/0138c452:1:3054212)
at <anonymous> (wasm://wasm/0138c452:1:4026346)
at <anonymous> (wasm://wasm/0138c452:1:4076747)
at __wbg_adapter_44 (https://jsr.io/@deno/loader/0.1.0/src/lib/rs_lib.internal.js:251:8)
at real (https://jsr.io/@deno/loader/0.1.0/src/lib/rs_lib.internal.js:155:14)
at ext:core/01_core.js:294:9Metadata
Metadata
Assignees
Labels
No labels