Public: anyone can read this; the crew can change it.
An app that stops with 'Cannot find module dist/server.js' says why on its page #17834
Merged 4h 27m ago, live in production
An app that dies on a missing entry file now fails with a plain sentence that names the cause and the fix. I did not find the forge-side cause, because I couldn't see the autobio, platos or trevato.dev logs from this sandbox. The tests for this change and tsc --noEmit pass; I did not run the full suite.
-
Reviews
ApprovedApproved. A start that dies on a missing entry file now ends with a plain sentence naming the file, the cause and the fix. It reuses the existing start-error path, so the page's failed state and the terminal screens show it with no new door to add. The real-app test covers both forms (dist output and source file), and a package name is correctly not called an entry file. I opened the preview:
/answers 200 with its CSP and security headers. The change is server-side error wording, so there is no new picture to look at.Two things I would do next:
- Do the evidence step the issue asked for. Read the failing app's log, confirm dist/ is neither committed nor built in the preview, and say so in the pull. If the forge should build, that is a separate issue.
missingEntryHintis reached throughnotFoundHint, whose name and doc comment say onlyexec: X: not found. Rename it or widen its comment so the next reader finds the new case. Also wrap the long MISSING_FILE_RE line.
-
Checks
waiting merged; waiting for the forge to restart on it deploy de6ec9b
-
History
- An app whose entry file is missing says so, with the fix (#17830) 4ca098b
- Talk's Stop stays for the whole answer, with words in the box too (#17819) b51ab2e
- The changelog credits a model only when a run backs it (#17807) e780a4e
- The decider can be compared with SubQ Snap in the background, off by default, and decides nothing (#17795) c0cee92
- small: the '+ New forge' page has one primary next action, with phone and desktop looks on the pull (#17818) 6cc8e61
- GET pulls/:number runs an uncapped diff and renders it on the serving thread (#17812) 153cbb3
- Full suite red: 2 files in check run 01m8wzswcz0vr3fz25ryd619jz (#17814) 8f7dfc4
- A Talk build's version strip is in sight when its preview opens, on a phone and at 1000 px (#17810) bdc702e
- Talk says what a long turn is doing and how long since its last step, across every stream (#17808) dcfa7ed
- A Talk build starts no crew run and no review, and only a person publishes it (#17803) cd1d5b7
- Only a check writes a retry decision's outcome, and it says which one (#17796) c2d976e
- A crew run that hits the turn limit wraps up, and says so in its run and its pull (#17809) b35dca2
- app-home-batched boots one forge for the file, and each test has its own account and repositories (#17805) 4763617
- A follow-up in Talk always carries what the person asked; tool steps are what gets cut (#17804) 7af0ffd
- A crew run can spend a granted OpenAI-type account, on the OpenAI runner, per run (#17787) b43bdad
- Talk: the model is a button beside Send, with a list you can type in, and plain names (#17794) 191cbc2
- A release asks scripts/return-check.ts before it promotes (#17793) 7618050
- A fresh start or a redone Talk answer sends the history once (#17802) d184914
- The contributor's walk of Talk's tools makes the calls that can run, not a thousand refused ones (#17806) 791b76f
- Games: /forge status and /forge servers (#17799) d20decc
An app that dies on a missing entry file now fails with a plain sentence that names the cause and the fix. I did not find the forge-side cause, because I couldn't see the autobio, platos or trevato.dev logs from this sandbox. The tests for this change and tsc --noEmit pass; I did not run the full suite.
What changed
notFoundHintinsrc/apps/run_command.tsalready adds a fix to start failures when the run command isn't found. It now also recognises a missing entry file, in both forms Bun prints:Cannot find module '…'andModule not found "dist/server.js".- For a file under
dist/,build/,out/or.output/, the error says it is a build output that isn't committed and that no step builds beforerun. It suggests committing it or building it in forge.jsoninstall(bun install && bun run build). - For any other missing file, it says to commit the file or point
runat one that exists. - A missing package such as
left-padis left alone, because a path is needed to call it an entry file. - The sentence is appended to the start error. The page's failed state (
servingWords) and the terminal screens already show that error, so both doors show it without further change.
Test: test/apps-compound-run.test.ts starts a real app with bun dist/server.js and with bun src/server.ts, neither present. Each start fails with the sentence, not the bare exit line. A second test checks that a missing package gets no entry-file hint.
Not done
- I did not find why the preview of trevato.dev stops, so the "say it in the pull with the evidence from the app's log" item is open. The likely cause is that
dist/is neither committed nor built, since a preview checkout runsinstallthenrun. A person should confirm it from the app's log. If it holds, those apps need a build step ininstall, and the page now says so. - The forge never runs a build step itself. The hint only suggests one for the app to put in its own forge.json.
Reused: the existing notFoundHint path in process.ts. No new dependencies, no egress changes.
Left #17830 open: 1 unticked item remain (Find in the forge why (build step skipped, dist not committed or not built in the preview, wrong cwd); say it in the pull with the evidence from the app's log.).
An app that dies on a missing entry file now fails with a plain sentence that names the cause and the fix. I did not find the forge-side cause, because I couldn't see the autobio, platos or trevato.dev logs from this sandbox. The tests for this change and
tsc --noEmitpass; I did not run the full suite.What changed
notFoundHintinsrc/apps/run_command.tsalready adds a fix to start failures when the run command isn't found. It now also recognises a missing entry file, in both forms Bun prints:Cannot find module '…'andModule not found "dist/server.js".dist/,build/,out/or.output/, the error says it is a build output that isn't committed and that no step builds beforerun. It suggests committing it or building it in forge.jsoninstall(bun install && bun run build).runat one that exists.left-padis left alone, because a path is needed to call it an entry file.servingWords) and the terminal screens already show that error, so both doors show it without further change.Test:
test/apps-compound-run.test.tsstarts a real app withbun dist/server.jsand withbun src/server.ts, neither present. Each start fails with the sentence, not the bare exit line. A second test checks that a missing package gets no entry-file hint.Not done
dist/is neither committed nor built, since a preview checkout runsinstallthenrun. A person should confirm it from the app's log. If it holds, those apps need a build step ininstall, and the page now says so.Reused: the existing
notFoundHintpath inprocess.ts. No new dependencies, no egress changes.Closes #17830