fix(website): upgrade to Astro v6 and Starlight 0.38.x#701
Closed
bryan-thompsoncodes wants to merge 1 commit intomainfrom
Closed
fix(website): upgrade to Astro v6 and Starlight 0.38.x#701bryan-thompsoncodes wants to merge 1 commit intomainfrom
bryan-thompsoncodes wants to merge 1 commit intomainfrom
Conversation
Starlight 0.38.x requires Astro v6, which includes Zod 4 and Vite 7. - Upgrade astro from ^5.18.1 to ^6.0.0 - Upgrade @astrojs/starlight from ^0.37.7 to ^0.38.3 - Upgrade @astrojs/react from ^4.4.2 to ^5.0.0 - Upgrade starlight-links-validator from ^0.14.3 to ^0.23.0 (Zod 4 compat) - Update pnpm-lock.yaml Resolves the build error: [vite] The requested module 'astro/zod' does not provide an export named 'locales' This was caused by Starlight 0.38.x using Astro v6 APIs not present in v5. Closes #692
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades the website to Astro v6 and Starlight 0.38.x to resolve the build error caused by Dependabot PR #692.
Problem
Dependabot PR #692 bumped
@astrojs/starlightfrom 0.37.7 to 0.38.3, but Starlight 0.38.x requires Astro v6 (dropping v5 support). This caused:The
localesexport is an Astro v6 API that Starlight 0.38.x depends on internally. No code changes in our repo reference it — it's inside Starlight's own integration code.Changes
astro:^5.18.1→^6.0.0(required by Starlight 0.38.x)@astrojs/starlight:^0.37.7→^0.38.3@astrojs/react:^4.4.2→^5.0.0(Astro v6 compatible line)starlight-links-validator:^0.14.3→^0.23.0(Zod 4 compatible — Astro v6 ships Zod 4)pnpm-lock.yamlNo code changes needed
The website's
content.config.tsalready uses the Content Layer API (docsLoader/docsSchema), andastro.config.mjsrequired no changes. The upgrade was purely dependency versions.Verification
pnpm run build— 145 pages built successfullypnpm run checks— lint, format, types, astro check, spelling all passpnpm run test— 13 tests pass (vitest)Notes
Closes #692