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

False empty collection error #12809

Closed
1 task done
jacob-armiger opened this issue Dec 22, 2024 · 1 comment
Closed
1 task done

False empty collection error #12809

jacob-armiger opened this issue Dec 22, 2024 · 1 comment
Labels
needs triage Issue needs to be triaged

Comments

@jacob-armiger
Copy link

jacob-armiger commented Dec 22, 2024

Astro Info

Astro                    v5.1.1
Node                     v23.3.0
System                   macOS (arm64)
Package Manager          pnpm
Output                   static
Adapter                  @astrojs/vercel
Integrations             @astrojs/tailwind
                         @astrojs/react

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

No response

Describe the Bug

Calling getCollection('projects') for my "projects" collection returns

The collection "projects" does not exist or is empty. Ensure a collection directory with this name exists.

This occurred some time after using pnpm dlx @astrojs/upgrade to upgrade from Astro 4 to 5. The error was occurring for both of my collections, but it seems one of them started working again once I used pnpm run dev instead of pnpm dev

What's the expected result?

I expect to receive the collection since I have the scheme defined in content.config.ts and md files in my projects folder.

Link to Minimal Reproducible Example

NA

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 Dec 22, 2024
@SamuNatsu
Copy link

How do you solve that? I faced the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants