Skip to content

Passing a frontmatter containing type reference() causes an error in pages that use the <StarlightPage /> component. #2270

@zhoushengdao

Description

@zhoushengdao

What version of starlight are you using?

0.26.1

What version of astro are you using?

4.15.1

What package manager are you using?

pnpm@9.9.0

What operating system are you using?

Windows

What browser are you using?

Edge, Chrome, Firefox

Describe the Bug

Passing a frontmatter containing type reference() causes an error in pages that use the <StarlightPage /> component.

image

Clone the repository, run the pnpm dev command, and then go to http://localhost:4321/page/ to see the error.

Reconstructive process: https://github.com/zhoushengdao/starlight-page-reference-error/commit/6fe29cb0b48cf1ff4df60533c0707103aea9802e

Link to Minimal Reproducible Example

https://github.com/zhoushengdao/starlight-page-reference-error

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions