Skip to content

fix: survive incomplete semver installs at startup (EPICSHOP-HD) - #649

Merged
kody-bot merged 1 commit into
mainfrom
cursor/sentry-triage-epicshop-epicshop-hd-9dc5
Aug 4, 2026
Merged

fix: survive incomplete semver installs at startup (EPICSHOP-HD)#649
kody-bot merged 1 commit into
mainfrom
cursor/sentry-triage-epicshop-epicshop-hd-9dc5

Conversation

@kentcdodds

@kentcdodds kentcdodds commented Aug 4, 2026

Copy link
Copy Markdown
Member

Summary

Sentry EPICSHOP-HD reported a fatal uncaught exception on learner machines:

Cannot find module './functions/prerelease' from a nested @epic-web/workshop-app/node_modules/semver install.

start.js previously did a static import semver from 'semver' for the Node engines check, so a corrupt/incomplete semver package took down the whole process before the server could boot.

Changes

  • Load semver dynamically and skip the engines check (with a warning) when resolution fails
  • Extract the check into node-version-check.js and publish it alongside start.js
  • Add aha tests for the soft-fail path and for publishing start.js relative imports

Status

Open in Web Open in Cursor 

Learner installs can ship a broken nested semver package that fatally
crashes startup on the static import. Load it dynamically, skip the
engines check if resolution fails, and publish the helper with start.js.

Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@nx-cloud

nx-cloud Bot commented Aug 4, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit f0b6861

Command Status Duration Result
nx run-many --target typecheck ✅ Succeeded 11s View ↗
nx run-many --target build ✅ Succeeded 23s View ↗
nx lint ✅ Succeeded 13s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-08-04 00:48:39 UTC

@kody-bot
kody-bot marked this pull request as ready for review August 4, 2026 00:51
@kody-bot
kody-bot merged commit 23e6138 into main Aug 4, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants