#Component.render is not a function

7 messages · Page 1 of 1 (latest)

novel saffron
#

I'm new to Astro and currently working on a website on which I want to render articles from a collection. Some of them are written with the .mdx format (and I already installed the .mdx integration). When I try to render a .md file, everything is fine, but when I try to render a .mdx file, I have this error :

Component.render is not a function

This component likely uses $(formatList(probableRendererNames))

Link to reproduction : https://stackblitz.com/edit/github-ggyvxo?file=src/pages/articles/news/index.astro

StackBlitz

Run official live example code for Astro Minimal, created by Withastro on StackBlitz

austere brook
#

Can you create a minimal reproduction so we can hopefully find the issue in the code? This doesn't look familiar

novel saffron
austere brook
#

Thanks I'll take a look!

austere brook
#

Looks like it was the # {title} causing it.
The correct syntax is {frontmatter.<frontmatter_key>}, so # {frontmatter.title} here