I'm trying to pass arguments to starlightSiteGraph().
The source for the project's page does this:
plugins: [
starlightLinksValidator({
errorOnInvalidHashes: false
}),
starlightThemeObsidian({
debug: false,
graphConfig: {
depth: 1,
scale: 1,
labelOpacityScale: 1.5,
labelFontSize: 11,
labelHoverScale: 1.3,
renderArrows: true,
tagRenderMode: 'same',
},
sitemapConfig: {
includeExternalLinks: true
}
}),
],
But when I do this:
plugins: [
starlightSiteGraph({
graphConfig: {}
}),
ion()
],
I get this error in terminal:
> [email protected] preview
> npx astro build && npx vite preview
19:42:47 [ERROR] [@astrojs/starlight] An unhandled error occurred while running the "astro:config:setup" hook
[AstroUserError] Invalid options passed to "starlight-site-graph-integration" integration
Hint:
Invalid input: expected map, received object
How can I fix this?