Unknown Content Collection Error when parent directory starts with an underscore #6329
Closed
1 task
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
What version of
astro
are you using?2.0.14
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
Hello,
I was experimenting with Astro and was constantly getting an Unknown Content Collection Error when accessing the
/blog
URL of theblog template
site.Steps to reproduce
mkdir _sandbox
,cd _sandbox
(the underscore is important)npm create astro@latest
, create it in./blog
, selectUse blog template
, install dependencies, initialize git repo and selectStrict
TypeScript configuration.cd blog
npm run dev
http://localhost:3000/blog
What I noticed was:
./astro
when runningnpm run dev
ornpm run astro sync
,sandbox
directory rather than_sandbox
) resolves the issue in astro@2.0.14.Note that I can't reproduce this on stackblitz since I do not have control over the parent directory.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-2gphvs?file=package.json,src%2Fcontent%2Fconfig.ts,.gitignore
Participation
The text was updated successfully, but these errors were encountered: