fix: upgrade @astrojs/sitemap to 3.7.1 to resolve Astro 6 build failure#879
Closed
fix: upgrade @astrojs/sitemap to 3.7.1 to resolve Astro 6 build failure#879
Conversation
…ate Node.js to v22 Co-authored-by: willtheorangeguy <18339050+willtheorangeguy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix build issues after update to Astro version 6
Fix Astro 6 compatibility: remove stale experimental flag and bump Node.js to 22
Mar 20, 2026
willtheorangeguy
approved these changes
Mar 20, 2026
Co-authored-by: willtheorangeguy <18339050+willtheorangeguy@users.noreply.github.com>
Co-authored-by: willtheorangeguy <18339050+willtheorangeguy@users.noreply.github.com>
Copilot
AI
changed the title
Fix Astro 6 compatibility: remove stale experimental flag and bump Node.js to 22
fix: upgrade @astrojs/sitemap to 3.7.1 to resolve Astro 6 build failure
Mar 20, 2026
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.
Astro 6's prerender chunks emit
import * as z from 'zod/v4'at runtime. With@astrojs/sitemap@3.7.0installed, the top-levelnode_modules/zodresolved to3.25.76, whose/v4subpath exportsfunctionfrom the core layer (not the classic wrapper) — soz.function()instances lack.optional(), causing the build to abort during static route generation.Changes
package.json: bump@astrojs/sitemapfrom^3.7.0→^3.7.1package-lock.json: regenerated; top-levelzodnow resolves to4.3.6(promoted by@astrojs/sitemap@3.7.1's updated peer depzod@^4.3.6)@astrojs/sitemap@3.7.1also migrates its own schema to the Zod v4 API, replacing the now-removed.args()/.returns()with the v4{ input, output }object form:Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
fonts.googleapis.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./node_modules/.bin/astro build git conf�� get --global k/_temp/ghcca-node/node/bin/bash credential.helpenpm(dns block)www.npmjs.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.