Skip to content

[WIP] Update @astrojs/mdx to version compatible with Astro v6#7

Merged
VashJuan merged 2 commits intomainfrom
copilot/update-astrojs-mdx-version
Feb 1, 2026
Merged

[WIP] Update @astrojs/mdx to version compatible with Astro v6#7
VashJuan merged 2 commits intomainfrom
copilot/update-astrojs-mdx-version

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 1, 2026

Fix Astro v6 Beta Dependency Conflicts

Plan

  • Research correct @astrojs/mdx version compatible with Astro v6 beta
  • Update @astrojs/mdx from 4.3.13 to 5.0.0-beta.3 in package.json
  • Check and update other @astrojs/* dependencies if needed
  • Run npm install to update package-lock.json
  • Verify no peer dependency conflicts
  • Wait for CI to verify the build succeeds

Changes Made

  • Updated: @astrojs/mdx from 4.3.13 → 5.0.0-beta.3
  • Result: npm install completed without ERESOLVE errors
  • Verified: All Astro packages now compatible with astro@6.0.0-beta.6

Dependency Versions After Fix

  • astro: 6.0.0-beta.6
  • @astrojs/mdx: 5.0.0-beta.3 (peer: astro@^6.0.0-alpha.0) ✅
  • @astrojs/svelte: 8.0.0-beta.2 (peer: astro@^6.0.0-alpha.0) ✅
  • @astrojs/sitemap: 3.7.0 (no Astro peer dependency) ✅
Original prompt

Problem

The GitHub Actions build is failing due to a dependency conflict between Astro and @astrojs/mdx:

npm error While resolving: @astrojs/mdx@4.3.13
npm error Found: astro@6.0.0-beta.6
npm error Could not resolve dependency:
npm error peer astro@"^5.0.0" from @astrojs/mdx@4.3.13
npm error Conflicting peer dependency: astro@5.17.1

Root Cause:

  • The project uses astro@6.0.0-beta.6 (beta version)
  • But @astrojs/mdx@4.3.13 requires astro@^5.0.0 (stable v5 only)
  • These peer dependency requirements are incompatible

Failed Build:
https://github.com/VashonMesh/VashonMesh.github.io/actions/runs/21570799617

Solution Requirements

Upgrade @astrojs/mdx to a version compatible with Astro v6 beta.

1. Update package.json Dependencies

Find the beta/pre-release version of @astrojs/mdx that supports Astro v6:

{
  "dependencies": {
    "astro": "^6.0.0-beta.3",
    "@astrojs/mdx": "^5.0.0-beta.0"  // or whatever the correct v6-compatible version is
  }
}

Research the correct version:

  • Check npm registry for @astrojs/mdx beta versions that support Astro v6
  • Look for versions with peer dependency: "astro": "^6.0.0" or similar
  • Common beta version patterns: 5.0.0-beta.x, 5.0.0-alpha.x, or similar

2. Update All Related Astro Dependencies

Ensure all Astro integrations are using v6-compatible versions:

{
  "@astrojs/mdx": "^5.0.0-beta.x",  // v6 compatible
  "@astrojs/svelte": "^8.0.0-beta.2",  // already v6 compatible based on logs
  "@astrojs/sitemap": "^4.0.0-beta.x"  // upgrade if needed
}

3. Run npm install to Update Lockfile

After updating package.json:

npm install

This will:

  • Update package-lock.json with resolved dependencies
  • Verify all peer dependencies are satisfied
  • Ensure the build will succeed

4. Verify No Other Peer Dependency Conflicts

Check for any other packages that might have Astro v5 peer dependencies:

  • Search package.json for any @astrojs/* packages
  • Verify each one supports Astro v6
  • Update any that don't

5. Test Build Locally (if possible)

If you can build locally, verify:

npm install
npm run build

Expected Outcome

After this fix:

  • npm install completes without ERESOLVE errors
  • ✓ All peer dependencies are satisfied
  • ✓ GitHub Actions build succeeds
  • ✓ Site deploys successfully to GitHub Pages

Files to Modify

  • package.json - Update @astrojs/mdx version and any other incompatible dependencies
  • package-lock.json - Will be automatically updated by npm install

Reference

This pull request was created from Copilot chat.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: VashJuan <8594671+VashJuan@users.noreply.github.com>
@VashJuan VashJuan marked this pull request as ready for review February 1, 2026 21:54
@VashJuan VashJuan merged commit 7d0784f into main Feb 1, 2026
Copilot AI requested a review from VashJuan February 1, 2026 21:54
Copilot stopped work on behalf of VashJuan due to an error February 1, 2026 21:54
@VashJuan VashJuan deleted the copilot/update-astrojs-mdx-version branch February 2, 2026 19:52
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.

2 participants