Repository navigation
Closed
Labels
- P2: has workaroundAn edge case that only affects very specific usage, but has a trivial workaround (priority)pkg: mdxIssues pertaining to `@astrojs/mdx` integrationtriage: fix verifiedReporter confirmed the triage bot fix works
Description
Astro Info
Astro v7.2.9
Vite v8.2.2
Node v24.5.0
System macOS (arm64)
Package Manager npm
Output static
Adapter none
Integrations @astrojs/mdx (v8.0.1)
@astrojs/react (v6.0.5)
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I am porting a blog post to a newer Astro 7 ("astro": "^7.2.9", to be exact) blog, and when adding MDX via npx astro add mdx it tells me that
@astrojs/markdown-satteri is too old to render .mdx files. Update it to the latest version — a ^ range on an older version will not pick it up:
npm install @astrojs/markdown-satteri@latest
I try then to install the latest and it seems that I do have the latest. Is it an issue with the content?
Here's the MDX blog post, let me know if the React components are also useful:
---
title: "Balatro: My latest obsession"
tags: ["personal", "games", "animation"]
description: "About the award winning card game"
pubDate: "2025-01-19"
---
import Card from "./Card.tsx";

[Balatro](https://www.playbalatro.com/) is a card game that has taken the internet by storm as of late. Like many others, I quickly
became addicted to its simple yet endlessly engaging mechanics. For about $10 or so (on the app store),
you're getting a ridiculous amount of value and playtime.
Balatro is written with the Löve game engine, which really motivates me to make a game myself. Prior to knowing of Balatro,
I had this notion that to make a decent game, you need to invest time and effort in learning languages like C++ or Java, and
engines like Unity and what not. I was aware of 2D game engines but a lot of the discourse online was that
most developers just end up using Unity.

But it is often said that it's not about what language or engine- it's about the execution. And Balatro was executed perfectly.
The game works like this: you have to beat "bosses" or blinds as they're called (poker lingo, I suppose). To do that,
you have to collect a number of points which is done by playing sets of cards (or "hands"). Each card gives you some
number of points, typically its number, and for each particular set you can receive extra points (for example, a flush: 5 cards
with the same *suit*, more poker lingo). The catch is, there are extra "power ups" you can apply to any card, and more
importantly, you can buy cards called "Jokers", which give you some type of conditional power. There is also money involved,
to buy said cards. The bosses also even have some tricks up their own sleeve.
I suggest you read [Wikipedia's description of it](https://en.wikipedia.org/wiki/Balatro_(video_game)#Playthrough) if you're
not convinced.
What I love most about Balatro though, are its interactions. The subtle hover styles, the "springyness" every time you touch a card, or when a card
is scored, is all intoxicating, and I wonder if it is what brings us all back for another round.
<Card client:load/>
<small>My small rendition of a point score interaction ☝️</small>
(heres the blog post: https://codeberg.org/haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaans/electric_eel/src/branch/main/src/posts/balatro%20copy)
What's the expected result?
It should render something.
Link to Minimal Reproducible Example
Participation
- I am willing to submit a pull request for this issue.
Metadata
Metadata
Assignees
Labels
- P2: has workaroundAn edge case that only affects very specific usage, but has a trivial workaround (priority)pkg: mdxIssues pertaining to `@astrojs/mdx` integrationtriage: fix verifiedReporter confirmed the triage bot fix works
Activity
astro-factory commentedon Sep 16, 2026
Triage complete
triage: fix pending[email protected]+@astrojs/[email protected]fails with the reported error on any.mdxfile.package.json), which isn't testable at runtime. The error message is in a non-exported internal function.[email protected]or later resolves the issue. The bug only affects users who installed@astrojs/[email protected]while pinned to[email protected]–7.2.9.The root cause is a too-loose peer dependency in
@astrojs/mdx: it declares"astro": "^7.2.6"but actually requires[email protected]+, which is the first version to bundle@astrojs/[email protected](the version that introducedcreateMdxRenderer). Versions7.2.6–7.2.9bundle@astrojs/[email protected], which lacks that method. The error message also misleadingly suggestsnpm install @astrojs/markdown-satteri@latest, which doesn't help becauseastropins its own nested copy.I found a potential fix for this issue. The fix tightens the
astropeer dep in@astrojs/mdxfrom^7.2.6to^7.2.10and updates the error message to suggest updatingastro(which bundles the processor) rather than just the processor package alone.Immediate workaround: Update
astroto7.2.10or later (npm install astro@latest).Try this fix
You can test this fix right now without waiting for a release:
# @astrojs/mdx npm i https://pkg.pr.new/@astrojs/mdx@033c51aIf this fixes your issue, please leave a comment letting us know (for example
"confirmed, this fixes it"). A pull request will then be opened to get it merged.
Full Triage Report
Issue Title
Adding the latest markdown satteri package raises the error that "@astrojs/markdown-satteri is too old to render .mdx files."
Environment Details
Steps to Reproduce
[email protected],@astrojs/[email protected], and@astrojs/[email protected]mdx()andreact()integrations.mdxfile (even a minimal one)astro buildExpected Result
The MDX page should render successfully.
Actual Result
Build fails with:
Root Cause
The bug is caused by a too-loose peer dependency range in
@astrojs/mdx. The MDX integration declares"astro": "^7.2.6"as a peer dependency, but it requirescreateMdxRendereron the markdown processor — a method that only exists in@astrojs/[email protected]+. Theastropackage bundles@astrojs/markdown-satterias a pinned direct dependency, and only[email protected]+bundles0.4.0or later.Dependency chain
[email protected]depends on@astrojs/[email protected](exact pin, no range)@astrojs/[email protected]requires@astrojs/markdown-satteri@^0.4.0(peer dep)@astrojs/[email protected]has peer depastro: "^7.2.6"which incorrectly allows[email protected]Code path
packages/astro/src/core/config/schemas/base.ts, line ~396) creates the default processor viasatteri()from its bundled@astrojs/[email protected]packages/integrations/mdx/src/index.ts, line ~157) viaconfig.markdown.processorpackages/integrations/mdx/src/vite-plugin-mdx.ts, line ~114) checksprocessor.createMdxRenderer— which isundefinedon0.3.8— and throwsWhy the suggested fix doesn't work
The error tells users to
npm install @astrojs/markdown-satteri@latest. This installs0.4.1at the top level, but npm keeps astro's nested0.3.8because astro pins it at an exact version. The processor continues to come from the nested0.3.8.Publication timeline
@astrojs/markdown-satteriversion[email protected]0.3.8(nocreateMdxRenderer)@astrojs/[email protected]^0.4.0[email protected]0.4.0(hascreateMdxRenderer)Verification
[email protected]+@astrojs/[email protected]→ ERROR ❌ (reproduced)[email protected]without MDX → works ✅ (baseline)[email protected]+@astrojs/[email protected]→ works ✅ (fix confirmed)npm install @astrojs/markdown-satteri@latest) → still fails ❌Fix Applied
Two changes in
packages/integrations/mdx/:package.json): Changed"astro": "^7.2.6"to"^7.2.10"— the minimum version bundling a compatible@astrojs/markdown-satteri.src/vite-plugin-mdx.ts): Now suggestsnpm install astro@latest @astrojs/markdown-satteri@latestinstead of just the processor package.All 8 MDX satteri integration tests and 44 MDX unit tests pass after the fix.
This report was made by an LLM. The analysis may be wrong, and the potential fix might not work, but is intended as a starting point for exploring the issue.
Princesseuh commentedon Sep 16, 2026
confirmed, this fixes it
astro-factory commentedon Sep 16, 2026
The fix has been verified! A pull request has been created: #18036