summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ben Holmes <hey@bholmes.dev> 2022-12-16 19:14:59 -0500
committerGravatar GitHub <noreply@github.com> 2022-12-16 19:14:59 -0500
commit33dcaa05bb821ff0c6d0c6021b912855386be340 (patch)
tree137977ade9fe1993a5f28f9c6ba7ad3bc58fb8b6
parentfc46ca53d19649401e2738055bf1b860320177d7 (diff)
downloadastro-33dcaa05bb821ff0c6d0c6021b912855386be340.tar.gz
astro-33dcaa05bb821ff0c6d0c6021b912855386be340.tar.zst
astro-33dcaa05bb821ff0c6d0c6021b912855386be340.zip
[Fix] Incorrect error message for MDX peer dependency (#5617)
* fix: out-of-date MDX error message * chore: changeset
Diffstat (limited to '')
-rw-r--r--.changeset/red-nails-mix.md5
-rw-r--r--packages/astro/src/content/internal.ts4
2 files changed, 6 insertions, 3 deletions
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,