Missing/weak validation on glob loader #12795
Labels
- P2: nice to have
Not breaking anything but nice to have (priority)
feat: content collections
Related to the Content Collections feature (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I just upgraded to Astro 5 and found the error handling on
glob
to be very weak. Problems:glob({ base: "/this/path/does/not/exist", pattern: "*" })
**/[^_]*.mdx?
), but there's no validation on this field.What's the expected result?
Documented inline, above.
Thank you to the team behind Astro for all of the hard work. I know that 5.0 is very new, and I hope that increasing the error handling here will help other upgrading users to have a smoother experience.
Link to Minimal Reproducible Example
https://docs.astro.build/en/guides/upgrade-to/v5/#updating-existing-collections
Participation
The text was updated successfully, but these errors were encountered: