-
-
Notifications
You must be signed in to change notification settings - Fork 941
SVG imports fail schema validation #3114
Copy link
Copy link
Closed
Description
What version of starlight are you using?
0.33.2
What version of astro are you using?
5.6.2
What package manager are you using?
pnpm
What operating system are you using?
n/a
What browser are you using?
n/a
Describe the Bug
When using the experimental.svg flag in Astro 5.6.2, passing an imported .svg file to the <StarlightPage frontmatter={{ hero: { image: {} } }} /> component results in an schema validation error.
Expected Result
No validation error
Actual Result
Invalid frontmatter props passed to the <StarlightPage/> component.
hero.image: Did not match union.
Expected type{ file: object } | { dark: object; light: object } | { html: string }
Received{}
Link to Minimal Reproducible Example
https://stackblitz.com/github/natemoo-re/astro-repro-svg-schema
Note: the /core and /from-markdown routes do not throw an error, the error seems to be limited to the frontmatter prop.
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels