esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

`esm.sh` is likey to fail to load the latest version of JSR packages

Open takker99 opened this issue 1 year ago • 0 comments

Failing module

For example:

  • GitHub: https://github.com/lucacasonato/esbuild_deno_loader
  • jsr: https://jsr.io/@luca/[email protected]

Error message

After running curl https://esm.sh/jsr/@luca/[email protected], I got the following request:

/* esm.sh - error */
throw new Error("[esm.sh] " + "pnpm add @jsr/[email protected],--prefer-offline:  ERR_PNPM_NO_MATCHING_VERSION  No matching version found for @jsr/[email protected]\n\nThis error happened while installing a direct dependency of /esmd/npm/@jsr/[email protected]\n\nThe latest release of @jsr/luca__esbuild_deno_loader is \"0.9.0\".\n\nIf you need the full list of all 1 published versions run \"$ pnpm view @jsr/luca__esbuild_deno_loader versions\".\n");
export default null;

Additional info

  • esm.sh version: v135
  • esm.sh is likely to refer the versions in deno.land/x, not JSR. For example:
    • https://esm.sh/jsr/@luca/esbuild_deno_loader redirects https://esm.sh/jsr/@luca/[email protected], which is the latest version in deno.land/x.
    • https://esm.sh/jsr/@core/unknownutil redirects https://esm.sh/jsr/@core/[email protected], which is the latest version in deno.land/x, too.

takker99 avatar Jul 16 '24 04:07 takker99