Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.162 throws Error: relative URL without a base, but 0.161 works fine ? #680

Open
lowlighter opened this issue Dec 19, 2024 · 0 comments
Open

Comments

@lowlighter
Copy link

For some reason on 0.162 the deno/doc doesn't work on my module, but the 0.161 works fine, not sure whether there was something changed in url resolution

About the project:

  • uses deno workspaces
  • has imports map (in deno.jsonc)

Minimal repro

import { doc as doc1 } from "jsr:@deno/[email protected]"
import { doc as doc2 } from "jsr:@deno/[email protected]"

console.log("0.161", await doc1("jsr:@mizu/render/server").then(() => "OK").catch((error) => error))
console.log("0.162", await doc2("jsr:@mizu/render/server").then(() => "OK").catch((error) => error))

Example output

PS C:\Users\local\Documents\GitHub\mizu> deno --version
deno 2.1.4 (stable, release, x86_64-pc-windows-msvc)
v8 13.0.245.12-rusty
typescript 5.6.2
PS C:\Users\local\Documents\GitHub\mizu> deno run -A .\test.ts
0.161 OK
0.162 Error: relative URL without a base
    at __wbg_new_28c511d9baebfa89 (https://jsr.io/@deno/doc/0.162.1/deno_doc_wasm.generated.js:651:19)
    at <anonymous> (wasm://wasm/011a3ff2:1:136374)
    at <anonymous> (wasm://wasm/011a3ff2:1:3139281)
    at <anonymous> (wasm://wasm/011a3ff2:1:3723228)
    at __wbg_adapter_51 (https://jsr.io/@deno/doc/0.162.1/deno_doc_wasm.generated.js:290:6)
    at real (https://jsr.io/@deno/doc/0.162.1/deno_doc_wasm.generated.js:274:14)
    at ext:core/01_core.js:291:9
    at eventLoopTick (ext:core/01_core.js:175:7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant