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

Fresh installation The collection "blog" does not exist or is empty. Please check your content config file for errors. #12939

Closed
1 task
khanakia opened this issue Jan 8, 2025 · 2 comments
Labels
feat: content layer Related to the Content Layer feature (scope) needs response Issue needs response from OP needs triage Issue needs to be triaged

Comments

@khanakia
Copy link

khanakia commented Jan 8, 2025

Astro Info

Astro                    v5.1.3
Node                     v22.12.0
System                   macOS (arm64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             @astrojs/mdx
                         @astrojs/sitemap

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

Chrome

Describe the Bug

I just installed a fresh astro with blog template and got the error when going to the blog page

Downloads npm create astro@latest 

> npx
> create-astro


 astro   Launch sequence initiated.

   dir   Where should we create your new project?
         ./astro_markdown

  tmpl   How would you like to start your new project?
         Use blog template

  deps   Install dependencies?
         Yes

   git   Initialize a new git repository?
         Yes

      ✔  Project initialized!
         ■ Template copied
         ■ Dependencies installed
         ■ Git initialized

  next   Liftoff confirmed. Explore your project!

         Enter your project directory using cd ./astro_markdown 
         Run npm run dev to start the dev server. CTRL+C to stop.
         Add frameworks like react or tailwind using astro add.

         Stuck? Join us at https://astro.build/chat

╭─────╮  Houston:
│ ◠ ◡ ◠  Good luck out there, astronaut! 🚀
╰─────╯
➜  Downloads cd astro_markdown       
➜  astro_markdown git:(main) pnpm dev

> [email protected] dev /Volumes/Downloads/astro_markdown
> astro dev

22:45:30 [types] Generated 0ms
22:45:31 [content] Syncing content
22:45:31 [content] Synced content

 astro  v5.1.3 ready in 817 ms

┃ Local    http://localhost:4321/
┃ Network  use --host to expose

22:45:31 watching for file changes...
22:45:38 [200] / 12ms
The collection "blog" does not exist or is empty. Please check your content config file for errors.
22:45:40 [200] /blog 6ms
The collection "blog" does not exist or is empty. Please check your content config file for errors

What's the expected result?

It should work out of the box as It's a fresh astro with blog template

Link to Minimal Reproducible Example

https://github.com/khanakia/astro_markdown

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 Jan 8, 2025
@florian-lefebvre florian-lefebvre added the feat: content layer Related to the Content Layer feature (scope) label Jan 8, 2025
@florian-lefebvre
Copy link
Member

florian-lefebvre commented Jan 9, 2025

Can you try again with 5.1.4? There are a few contacts layer related fixes

@florian-lefebvre florian-lefebvre added the needs response Issue needs response from OP label Jan 9, 2025
@ascorbic
Copy link
Contributor

ascorbic commented Jan 9, 2025

I'm going to close this as it's a dupe of #12866. It should be fixed in 5.1.4

@ascorbic ascorbic closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: content layer Related to the Content Layer feature (scope) needs response Issue needs response from OP needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants