Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The collection "blog" does not exist or is empty with contentCollectionCache enabled under astro 5 beta. #12065

Closed
1 task
oxSaturn opened this issue Sep 24, 2024 · 2 comments · Fixed by #12081
Closed
1 task
Labels
feat: content collections Related to the Content Collections feature (scope)

Comments

@oxSaturn
Copy link

oxSaturn commented Sep 24, 2024

Astro Info

Astro                    v5.0.0-beta.2
Node                     v18.20.3
System                   Linux (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

When building the site with npm run build, I would run into this error:

The collection "blog" does not exist or is empty with contentCollectionCache enabled.

What's the expected result?

I would expect the build to proceed without the problem.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-9pytya?file=src%2Fcontent%2Fconfig.ts,src%2Fdata%2Fblog%2Ftest.md,src%2Fpages%2Fblog%2F[...slug].astro,src%2Fpages%2Findex.astro,astro.config.mjs&on=stackblitz

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Sep 24, 2024
@florian-lefebvre florian-lefebvre linked a pull request Sep 28, 2024 that will close this issue
@florian-lefebvre
Copy link
Member

Experimental Content Collections Cache will soon be removed (likely in the next 5.0 beta), in favor of Content Layer

@florian-lefebvre florian-lefebvre added feat: content collections Related to the Content Collections feature (scope) and removed needs triage Issue needs to be triaged labels Sep 28, 2024
@ascorbic
Copy link
Contributor

ascorbic commented Oct 2, 2024

CCC is no longer supported, so I'm closing this

@ascorbic ascorbic closed this as completed Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: content collections Related to the Content Collections feature (scope)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants