Open dagilleland opened 1 week ago
|- TypeError: Cannot destructure property 'plugins' of 'undefined' as it is undefined. at Module.StarlightIntegration [as default] (D:\GH\Programming-0101\SkunkWorks-DG\omni-kit\node_modules.pnpm\@astrojs+starlight@0.29.0astro@4.16.9@types+node@20.17.6_rollup@4.24.4typescript@5.6.3\node_modules\@astrojs\starlight\index.ts:31:2)
This error is coming from Starlight: https://github.com/withastro/starlight/blob/83d4507e1a385226879bd64147e4e09fef5f79a2/packages/starlight/index.ts#L30-L33
You'll need to add object as argument:
export default defineConfig({
devToolbar: {
enabled: false,
},
- integrations: [tutorialkit(), starlight()],
+ integrations: [tutorialkit(), starlight({})],
});
Is your feature request related to a problem?
If I create a new TutorialKit project, since it is based on Astro, I would expect to use other Astro plugins such as Starlight. But it doesn't work out-of-the-box.
Tutorial Kit solves part of the problem in helping developers learn, but it would be best if it can be combined with other aspects, such as documentation (which Starlight excels at).
Describe the solution you'd like.
I would like to scaffold a new project with these simple commands:
followed by
Describe alternatives you've considered.
The only alternative I see is to "roll my own" or to figure out what intermediate manual "prep" I would need to do with the Tutorial Kit project once it's scaffolded. It might be simple, such as a tweak to the
astro.config.ts
generated through Tutorial Kit'screate-tutorial
project. Or it could be more....Additional context
When I attempt to scaffold the project, I get the following error related to
'plugins'
ofastro.config.ts
:Here's the full console output: