Skip to content

Conversation

@cclinet
Copy link

@cclinet cclinet commented Jan 14, 2026

Supports the upcoming astro 6.0 version.

@netlify
Copy link

netlify bot commented Jan 14, 2026

Deploy Preview for expressive-code ready!

Name Link
🔨 Latest commit a2ed4e0
🔍 Latest deploy log https://app.netlify.com/projects/expressive-code/deploys/69688695e7fb480008b70a18
😎 Deploy Preview https://deploy-preview-415--expressive-code.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@cclinet
Copy link
Author

cclinet commented Jan 14, 2026

I noticed that Astro v6 requires a minimum Node.js version of v22.

It seems the current CI environment is running on Node v18, which is causing the build to fail. I'm having a bit of trouble locating the specific workflow configuration to update the Node.js version.

Could you point me to the right file to modify, or assist with updating the CI environment? Thanks!

@delucis
Copy link
Collaborator

delucis commented Jan 14, 2026

Could you point me to the right file to modify, or assist with updating the CI environment? Thanks!

I think that’s only the Netlify site build you’re seeing failing, which needs setting in the dashboard (I don’t have access personally). But I think we need to keep the docs site running on Astro 5 for now, so no need to update that CI environment.

In the actual CI test workflow it’s erroring because the packageManager and engines.pnpm fields don’t match.

},
"peerDependencies": {
"astro": "^4.0.0-beta || ^5.0.0-beta || ^3.3.0"
"astro": "^3.3.0 || ^4.0.0-beta || ^5.0.0-beta || ^6.0.0-beta"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I remember, the order of versions in the peerDependencies -> astro field is important as it influences which Astro types the project is built with.

In an earlier PR, I had to make a commit to switch the order of packages around to ensure that the proper Astro version's TypeScript types are being used.

Your change here would cause the build process to use outdated Astro 3 types. I'd recommend keeping this in the previous order and just adding || ^6.0.0-beta to the end to keep potential side effects of your changes minimal.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation! I wasn't aware that the order in peerDependencies would influence the resolved version for the build types.

I've reverted the order to the original state and appended || ^6.0.0-beta at the very end to minimize side effects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants