Commit ddc9190
committed
fix(deps): pin tsx to 4.21.0 — 4.22.x breaks CJS extensionless resolution
tsx 4.22.x regressed its runtime resolver: extensionless require()s inside
dependencies get a `.jsx` extension appended, so ajv's
require("./compile/index") resolves to a non-existent index.jsx and throws
MODULE_NOT_FOUND. This crash-loops every tsx-run service (apps/api,
data-manager) at boot — fastify pulls @fastify/ajv-compiler → ajv on startup.
Not caught by check-types/tests/web build: only the tsx runtime CJS resolver
hits this path. Surfaced on deploy when app-api + data-manager restart-looped.
Pin via override to 4.21.0 (known-good, what prod ran before the dep sweep)
until fixed upstream.1 parent f7b6a07 commit ddc9190
2 files changed
Lines changed: 50 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
0 commit comments