diff --git a/.changeset/red-nails-mix.md b/.changeset/red-nails-mix.md new file mode 100644 index 000000000..25893d94f --- /dev/null +++ b/.changeset/red-nails-mix.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix error message when using Content Collections and an out-of-date `@astrojs/mdx` integration diff --git a/packages/astro/src/content/internal.ts b/packages/astro/src/content/internal.ts index 64c5bbd82..f49dd8d22 100644 --- a/packages/astro/src/content/internal.ts +++ b/packages/astro/src/content/internal.ts @@ -138,9 +138,7 @@ async function render({ }); if (!mod._internal && id.endsWith('.mdx')) { - throw new Error( - `[Content] Failed to render MDX entry. Try installing @astrojs/mdx@next--content-schemas` - ); + throw new Error(`[Content] Failed to render MDX entry. Try installing @astrojs/mdx@latest`); } return { Content,