Skip to content

[v7 beta] [MISSING_EXPORT] "satteriCollectImagesPlugin" from @astrojs/mdx #17068

Description

@serhalp

Astro Info

Astro                    v7.0.0-beta.3
Node                     v24.4.1
System                   macOS (arm64)
Package Manager          unknown
Output                   static
Adapter                  @astrojs/netlify
Integrations             unocss
                         @astrojs/preact
                         @astrojs/mdx

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

I upgraded my Astro 6 site to Astro 7 beta, using pnpx @astrojs/upgrade@latest beta.

astro build fails with:

14:11:15 [build] Building server entrypoints...
14:11:17 [ERROR] [vite] ✗ Build failed in 1.65s
[MISSING_EXPORT] "satteriCollectImagesPlugin" is not exported by "__vite-optional-peer-dep:@astrojs/markdown-satteri:@astrojs/mdx".
   ╭─[ node_modules/.pnpm/@[email protected][email protected]_@[email protected]_@[email protected]_6833170849218ce72c0cd62864635157/node_modules/@astrojs/mdx/dist/satteri/index.js:3:3 ]
   │
 3 │   satteriCollectImagesPlugin,
   │   ─────────────┬────────────
   │                ╰────────────── Missing export
───╯

  Location:
       ╭─[ node_modules/.pnpm/@[email protected][email protected]_@[email protected]_@[email protected]_6833170849218ce72c0cd62864635157/node_modules/@astrojs/mdx/dist/satteri/index.js ]:3:3

Example failed build: https://app.netlify.com/projects/philippeserhal/deploys/6a2d99ba2dac40000804f27f
From this PR: serhalp/philippeserhal.com#200

What's the expected result?

astro build completes successfully with Astro 7 without needing to manually install the optional peer dep @astrojs/markdown-satteri

It's possible I've missed something in the release notes, but as far as I could tell the satteri md processor is meant to be opt-in currently and become the default in Astro 7. This seems like an unintentional in-between state?

Link to Minimal Reproducible Example

serhalp/philippeserhal.com#200

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P4: importantViolate documented behavior or significantly impacts performance (priority)pkg: mdxIssues pertaining to `@astrojs/mdx` integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions