Commit 73ef3fd
fix(astro): require Astro 6 peer dep (>=6 <7) (#429)
The SSR runtime (astro/src/runtime/server.ts) imports astro/app/entrypoint,
an Astro-6-only export (Astro 5 exports only ./app and ./app/node). The
>=5 <7 peer range therefore caused a cryptic build crash on Astro 5 during
"Building server entrypoints":
[commonjs--resolver] Missing "./app/entrypoint" specifier in "astro" package
The try/catch in getAstroApp() can't help — Vite resolves the specifier at
bundle time, before the runtime guard runs. Tighten the peer range to >=6 <7
so it matches what the SSR adapter actually requires (npm warns at install
instead of crashing mid-build). Reconcile the lockfile and update the README
install note + CHANGELOG.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent abaa6cd commit 73ef3fd
4 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | | - | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
| 578 | + | |
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments