Unable to build Starlight documentation with Astro version >=2.6.4
#7397
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
What version of
astro
are you using?2.6.4
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
Note: I am posting this issue in this repo as advised in the #starlight Discord channel as the issue seems to be related to an Astro regression.
With Starlight, when using an Astro version
>=2.5.6
, the build fails with the following error:A few notes:
v2.5.5
works fine.>=2.5.6
fail even the latest one.astro dev
works fine.pnpm create astro --template starlight
but I was not able to reproduce it.I did not have yet the time to investigate further and git bisect to find the exact commit that introduced the issue but a quick workaround is to use Astro
v2.5.5
for now.I provided a Stackblitz project that reproduces the issue where you can see the error by running
cd docs && pnpm build
.The issue is also reproducible in the Starlight repo:
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-kwocty?file=docs%2Fpackage.json&view=editor
Participation
The text was updated successfully, but these errors were encountered: