Closed roll closed 18 hours ago
The plugin doesn't seem to be taking into an account srcDir
srcDir
// https://astro.build/config export default defineConfig({ srcDir: ".", }
astro build
[vite]: Rollup failed to resolve import "/src/content/config.ts" from "virtual:starlight/collection-config".
It builds instead of failing
Every time
No response
A temporary fix is just to have src/content/config.ts copy as well
src/content/config.ts
Thanks for the report 🙌
This turns out to be an issue in Starlight and I've opened https://github.com/withastro/starlight/pull/2054 to fix the issue.
Starlight 0.24.5 was just released with the fix for this issue.
0.24.5
I just tested locally with a custom srcDir using that latest Starlight version and now the build works fine as expected.
Thanks again for your report 🙌
Describe the bug
The plugin doesn't seem to be taking into an account
srcDir
To Reproduce
astro build
[vite]: Rollup failed to resolve import "/src/content/config.ts" from "virtual:starlight/collection-config".
Expected behavior
It builds instead of failing
How often does this bug happen?
Every time
System Info
No response
Additional Context
A temporary fix is just to have
src/content/config.ts
copy as well