Jan 16, 2025 · Originally published at Val Town
Yesterday esm.sh deployed breaking changes that caused two kinds of errors for our users: lockfile errors and client-side React errors. The first error was resolved by esm.sh rolling back the change related to React version pinning. The second error was resolved by us manually regenerating all affected lockfiles. We are working to upgrade our systems with the esm.sh maintainer to ensure this doesn't happen again.
These breaking changes impacted approximately 2% of Val Town users.
The lockfile errors happened the first time a val using esm.sh was run yesterday, because esm.sh changed the URL structure of their imports, which results in a lockfile integrity error.
So on first run, the val would throw an error. Then we'd send an error email to the user. Some users received many such error emails. The lockfiles would automatically regenerate, so the error emails were unnecessary. At 10:39am we decided to silence lockfile error emails.
This lockfile error would only happen the first time a val was run after the esm.sh change. However, we still wanted to prevent this error, so we manually regenerated the lockfiles for all remaining affected vals. After 5pm ET, almost all lockfile errors were resolved. We are still tracking some remaining few errors per hour that are still happening.
The client-side React errors were unrelated to the lockfile errors, but were also bundled into the v136 esm.sh release. In v136, esm.sh stopped pinning react-dom to use the same version of react automatically, which is behavior that many vals were unintentionally relying on. This issue was more easily resolved, when by simply having esm.sh roll back that change.
We take stability extremely seriously and we're sorry for the downtime this caused. We're taking steps to ensure this doesn't happen again:
If you have any questions or concerns, please reach out to me directly at steve@val.town.