HiDeoo / starlight-versions

Starlight plugin to version documentation pages
https://starlight-versions.vercel.app
MIT License
24 stars 1 forks source link

[AstroUserError] Cannot read properties of undefined (reading 'split') #6

Closed lilith closed 3 months ago

lilith commented 3 months ago

Describe the bug

starlightVersions({
        versions: [{ slug: '1.0' }],
})

19:14:18 [starlight-versions-plugin] Created new version '1.0'.
[AstroUserError] Cannot read properties of undefined (reading 'split')
 at Module.throwPluginError (/home/lilith/work/resizer-web/node_modules/starlight-versions/libs/plugin.ts:6:9)
    at async Module.runPlugins (/home/lilith/work/resizer-web/node_modules/@astrojs/starlight/utils/plugins.ts:26:5)
    at async withTakingALongTimeMsg (file:///home/lilith/work/resizer-web/node_modules/astro/dist/integrations/hooks.js:23:18)
    at async createContainer (file:///home/lilith/work/resizer-web/node_modules/astro/dist/core/dev/container.js:21:14)
    at async dev (file:///home/lilith/work/resizer-web/node_modules/astro/dist/core/dev/dev.js:20:19)

To Reproduce

Follow the readme

Expected behavior

No error in parsing the configuration

How often does this bug happen?

Every time

System Info

No response

Additional Context

No response