[Fix] Incorrect error message for MDX peer dependency (#5617)

* fix: out-of-date MDX error message

* chore: changeset
This commit is contained in:
Ben Holmes 2022-12-16 19:14:59 -05:00 committed by GitHub
parent fc46ca53d1
commit 33dcaa05bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix error message when using Content Collections and an out-of-date `@astrojs/mdx` integration

View file

@ -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,