Home Articles Books Search About
日本語

Upgrading from Astro 4 to 5 — A Migration Log

Background A website built with Astro 4 + MDX + Tailwind CSS had an issue. Due to pnpm overrides, astro 5.x was being force-installed, causing a compatibility issue with @astrojs/mdx@2.x (designed for Astro 4): Package subpath './jsx/renderer.js' is not defined by "exports" in astro/package.json Rather than rolling back to Astro 4, I decided to upgrade to Astro 5. Changes 1. Package Updates // Before "@astrojs/mdx": "^2.0.0", "astro": "^4.0.3" // After "@astrojs/mdx": "^4.0.0", "astro": "^5.0.0" @astrojs/tailwind and tailwindcss remained unchanged. ...