8000 Cannot resolve `jsr`dependency when building npm package · Issue #378 · denoland/dnt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cannot resolve jsrdependency when building npm package #378

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

Closed
cowboyd opened this issue Mar 1, 2024 · 2 comments · Fixed by #380
Closed

Cannot resolve jsrdependency when building npm package #378

cowboyd opened this issue Mar 1, 2024 · 2 comments · Fixed by #380

Comments

@cowboyd
Copy link
cowboyd commented Mar 1, 2024

I'm migrating https://github.com/thefrontside/effection to use https://jsr.io

It consumes a package that had previously been hosted at https://deno.land/x but is now on jsr at https://jsr.io/@frontside/continuation

However, now, when I try to build this package for npm using dnt, I get the following error:

$ deno task build:npm
Task build:npm deno run -A tasks/build-npm.ts
[dnt] Transforming...
Download https://registry-staging.deno.com/@frontside/continuation/meta.json
WARN Failed fetching https://registry-staging.deno.com/@frontside/continuation/meta.json. Retrying in 250ms...
WARN Failed fetching https://registry-staging.deno.com/@frontside/continuation/meta.json. Retrying in 500ms...
WARN Failed fetching https://registry-staging.deno.com/@frontside/continuation/meta.json. Retrying in 1000ms...
panicked at wasm\src\lib.rs:24:1:
unexpected exception: JsValue(TypeError: error sending request for url (https://registry-staging.deno.com/@frontside/continuation/meta.json): error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known
TypeError: error sending request for url (https://registry-staging.deno.com/@frontside/continuation/meta.json): error trying to connect: dns error: failed to lookup address information: nodename nor servname provided, or not known
    at async mainFetch (ext:deno_fetch/26_fetch.js:170:12)
    at async fetch (ext:deno_fetch/26_fetch.js:391:7)
    at async fetchWithRetries (https://deno.land/x/deno_cache@0.6.2/file_fetcher.ts:280:19)
    at async FileFetcher.#fetchRemote (https://deno.land/x/deno_cache@0.6.2/file_fetcher.ts:209:22)
    at async FileFetcher.fetch (https://deno.land/x/deno_cache@0.6.2/file_fetcher.ts:261:24))

steps to reproduce:

git clone https://github.com/thefrontside/effection --branch jsr
deno task build:npm
@bebraw
Copy link
bebraw commented Mar 1, 2024

https://registry-staging.deno.com/@frontside/continuation/meta.json doesn't seem to resolve even in a regular browser. Are you sure that url is valid?

@dsherret
Copy link
Member
dsherret commented Mar 1, 2024

dnt just hasn't been updated yet to support jsr. I'm working on it now.

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

Successfully merging a pull request may close this issue.

3 participants
0