Open Johannes-Andersen opened 1 month ago
do you set basepath
to esm/esm
?
do you set
basepath
toesm/esm
?
No, just /esm/
:)
For example these work: https://www.vg.no/esm/stable/react@18.3.1/es2020/react.mjs https://www.vg.no/esm/stable/react@18.3.1/es2020/jsx-runtime.js https://www.vg.no/esm/v133/@schibsted/data-controller@4.0.1/es2020/data-controller.mjs https://www.vg.no/esm/v133/@schibsted/data-controller@4.0.1
i see, thanks! i will look into it
Failing module
Error message
Package import: https://www.vg.no/esm/@sentry/astro@8.20.0?target=es2020
Resolves this:
When the browser then tries to resolve those URLS, it fails (those with
esm/esm
)Responds with 403 forbidden: https://www.vg.no/esm/esm/v135/@sentry/browser@8.20.0/es2020/browser.mjs
Allow list is:
Is this check failing due to not extracting the package name/scope correctly? Only happens for URLs that has the double
esm/esm
https://github.com/esm-dev/esm.sh/blob/72fb460530047e34fa5509b98b3f166732bfa53c/server/router.go#L565Additional info