Closed erralb closed 2 months ago
Hi @erralb! Your project does not include @astrojs/mdx
in its dependencies so that’s why you’re getting that error.
In general for a Starlight project you don’t need to add MDX or astro-expressive-code
manually like in your Astro config file: https://github.com/erralb/bdd/blob/128c39b92be3a134b3035ee2ba027112d64428ac/astro.config.mjs#L122-L123
Starlight adds both of those for you.
Thanks @delucis , it solved my problem.
I added this while following this documentation to add the MermaidJS plugin. I actually also had other problems afterwards with Playwright and Github actions, but at least my first problem is solved thanks !
Thanks for sharing the blog post! Makes sense there I guess because they’re recommending those extra integrations for a plain Astro site, but Starlight comes with them built in. Glad you got it working 🙌
What version of
starlight
are you using?0.27.1
What version of
astro
are you using?4.15.4
What package manager are you using?
pnpm
What operating system are you using?
Linux
What browser are you using?
Chrome
Describe the Bug
Following the Github pages deployment guide, I am getting the following error at build :
Locally, it works fine (with
astro build
andastro dev
)My astro.config.mjs file :
My deployment file :
The repo is publicly available for trying to reproduce the bug, any help would be much appreciated !
Link to Minimal Reproducible Example
https://github.com/erralb/bdd
Participation