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

Failed to load uncached https://esm.sh/jsr/@celine/[email protected]/libertine.css #942

Open
MaxwellBo opened this issue Dec 6, 2024 · 1 comment
Labels
browser Not working in Browser

Comments

@MaxwellBo
Copy link

MaxwellBo commented Dec 6, 2024

Failed to load uncached https://esm.sh/jsr/@celine/[email protected]/libertine.css

When I try to load this stylesheet

<link rel="stylesheet" href="https://esm.sh/jsr/@celine/[email protected]/libertine.css" />

with a brand new version number that I've just published I get:

pnpm add @jsr/[email protected],--prefer-offline:  ERR_PNPM_FETCH_404  GET https://registry.npmjs.org/@jsr%2Fceline__libertine: Not Found - 404

This error happened while installing a direct dependency of /esmd/npm/@jsr/[email protected]

@jsr/celine__libertine is not in the npm registry, or you have no permission to fetch it.

No authorization header was set for the request.

as a response.

If I then load https://esm.sh/jsr/@celine/[email protected] and then try to load https://esm.sh/jsr/@celine/[email protected]/libertine.css again the stylesheet loads fine!

My gut reaction is that loading https://esm.sh/jsr/@celine/[email protected] forces something to get computed and then saved to a database somewhere, which permits https://esm.sh/jsr/@celine/[email protected]/libertine.css to load. Directly navigating to https://esm.sh/jsr/@celine/[email protected]/libertine.css if this has not happened first does not force this computation.

Package details

Also reproducible with another one of my packages

and https://esm.sh/jsr/@celine/[email protected]/cell.css

@MaxwellBo MaxwellBo added the browser Not working in Browser label Dec 6, 2024
@ije
Copy link
Member

ije commented Dec 6, 2024

@MaxwellBo thanks for reporting! i found the server doesn't create the .npmrc file which is required by /jsr/ pattern when you are accessing a raw file, loading JS file is ok. i will fix it ASAP!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser Not working in Browser
Projects
None yet
Development

No branches or pull requests

2 participants