You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to an existing otherwise working starlight project, it stops working with the error
13:16:42 [ERROR] Cannot read properties of undefined (reading 'addBase')
Stack trace:
at formatPath (/home/projects/withastro-starlight-7ibewh/node_modules/@astrojs/starlight/utils/createPathFormatter.ts:25:25)
[...] See full stack trace in the browser, or rerun with --verbose.
Thank you for the bug report @lschierer! I think this is probably related to the 'preserve' setting — that was added to Astro after our logic for paths was added, so we’re likely not accounting for it in the createPathFormatter utility where that error is being logged.
Our formatting strategies account for the 'file' and 'directory' configurations, but not the newer 'preserve':
What version of
starlight
are you using?0.21.5
What version of
astro
are you using?4.6.3
What package manager are you using?
pnpm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
when I add the options
to an existing otherwise working starlight project, it stops working with the error
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-starlight-7ibewh?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: