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

ESM serving corrupted/incorrect content

Open grgzhng opened this issue 1 month ago • 2 comments

Around 30 minutes ago, we started running into the following issue while transpiling code retrieved from ESM:

npm-modules:https://esm.sh/react-is@^19.2.0?target=es2022:3:30: ERROR: Unterminated string literal

Going to https://esm.sh/react-is@^19.2.0?target=es2022:3:30 on the browser and hitting it via curl seems to show properly formatted content:

/* esm.sh - [email protected] */
export * from "/[email protected]/es2022/react-is.mjs";
export { default } from "/[email protected]/es2022/react-is.mjs";

From searching prior issues, it seems like there's some related ones like https://github.com/esm-dev/esm.sh/issues/1142 that have been resolved via a purged cache. Could something like that be occurring here?

Any help would be appreciated, thanks!

grgzhng avatar Nov 20 '25 04:11 grgzhng

Just resolved! Unsure if y'all did something on your end or a bad cache expired, but if there's any explanation to help us understand what occurred, that would be helpful to understand!

grgzhng avatar Nov 20 '25 04:11 grgzhng

i also have no idea, maybe it's caused by the outage of cloudflare recently, i just purged the cache hope everything is going fine.

ije avatar Nov 20 '25 05:11 ije