You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The contents of 404.astro.mjs is the same but referencing the 404 files instead.
Note: I wasn't able to get this to reproduce in Stackblitz but got it locally on a macOS M1 Pro (macOS 13.4 (22F66)) and also on a GitHub Codespace environment.
From a quick check, it looks like this may be an issue introduced in Astro v2.5.6 as v2.5.5 does not reproduce the issue for me.
There already has been issues with Starlight related to this specific version, e.g. withastro/astro#7397 where it was suggested this could be related to withastro/astro#7193 which updated the build strategy.
If confirmed that this is an issue starting with Astro v2.5.6, maybe it would be worth moving this issue to the Astro repo?
You're the best @HiDeoo , just did a build against those two and can confirm it seems to be introduced in v2.5.6. I'll close this one out and open it over in the Astro repo.
What version of
starlight
are you using?0.6.1
What version of
astro
are you using?2.10.0
What package manager are you using?
pnpm
What operating system are you using?
macOS and Linux (GitHub Codespace)
What browser are you using?
N/A
Describe the Bug
There appear to be 2 files that aren't cleaned up as part of running
pnpm astro build
:dist/node_modules/.pnpm/@astrojs+starlight@0.6.1_astro@2.10.0/node_modules/@astrojs/starlight/404.astro.mjs
dist/node_modules/.pnpm/@astrojs+starlight@0.6.1_astro@2.10.0/node_modules/@astrojs/starlight/index.astro.mjs
The content inside the
index.astro.mjs
looks like this:The contents of
404.astro.mjs
is the same but referencing the 404 files instead.Note: I wasn't able to get this to reproduce in Stackblitz but got it locally on a macOS M1 Pro (macOS 13.4 (22F66)) and also on a GitHub Codespace environment.
Link to Minimal Reproducible Example
https://github.com/lorenzolewis/starlight-bug-test
Participation
The text was updated successfully, but these errors were encountered: