Closed david-hodgetts closed 6 months ago
I think this is a duplicate of #11063. So this is not a starlight issue per se. Sorry for posting in the wrong repo.
Thank you david i'm running into the same issue!
Thanks for reporting @david-hodgetts! I also think it’s a duplicate of https://github.com/withastro/astro/issues/11063, so will close this one in favour of that one — probably nothing we can do in Starlight itself.
For anyone else finding this, I guess until https://github.com/withastro/astro/issues/11063 is fixed, downgrading to Astro 4.7 might be the best approach.
What version of
starlight
are you using?0.22.3
What version of
astro
are you using?4.8.4
What package manager are you using?
npm
What operating system are you using?
Linux
What browser are you using?
Not relevant
Describe the Bug
Given the following Starlight
mdx
file:Which uses the following
Example
Astro component:Which itself contains an instance of the following
Wrapper
Astro component:We expect both script tags present in the
Wrapper
andExample
component to run. This is, however, not the case when when running the project from abuild
folder. In that situation, the script tag present in theExample
component 'disappears' and only the script tag present in theWrapper
component runs.The issue does not occur when running through the
dev
server.The issue does not occur when the
Example
component is inserted in an Astro page.The issue appears only when using Astro v4.8.0 or higher.
Link to Minimal Reproducible Example
https://github.com/david-hodgetts/starlight-mdx-with-astro-component-script-tag-issue
Participation