[Fix] Incorrect error message for MDX peer dependency (#5617)
* fix: out-of-date MDX error message * chore: changeset
This commit is contained in:
parent
fc46ca53d1
commit
33dcaa05bb
2 changed files with 6 additions and 3 deletions
5
.changeset/red-nails-mix.md
Normal file
5
.changeset/red-nails-mix.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix error message when using Content Collections and an out-of-date `@astrojs/mdx` integration
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue