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

queryCollection returning null on Windows #2897

Open
patriciorivera opened this issue Dec 8, 2024 · 2 comments
Open

queryCollection returning null on Windows #2897

patriciorivera opened this issue Dec 8, 2024 · 2 comments
Labels

Comments

@patriciorivera
Copy link

Environment


  • Operating System: Windows_NT
  • Node Version: v20.9.0
  • Nuxt Version: 3.14.1592
  • CLI Version: 3.16.0
  • Nitro Version: 2.10.4
  • Package Manager: [email protected]
  • Builder: -
  • User Config: default
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Reproduction

https://github.com/patriciorivera/contentV3

Describe the bug

I'm a newbie. I don't know what I'm doing wrong. Sorry in advance. But:

home is returning null

const { data: home } = await useAsyncData(() => queryCollection('content').path('/').first())

Additional context

No response

Logs

@larbish
Copy link
Collaborator

larbish commented Dec 8, 2024

After a clean install, everything works as expected on my side @patriciorivera

@patriciorivera
Copy link
Author

I deployed the reproduction repository on DigitalOcean, and it worked as expected as well, so I concluded it was an issue with my Windows development environment. I migrated to WSL, and it worked perfectly. I’m not sure what the issue was on Windows.

Maybe this could be a hint for someone else working on Windows.

Thank you very much anyway, @larbish

@larbish larbish changed the title queryCollection returning null V3 queryCollection returning null on Windows Dec 9, 2024
@larbish larbish added the v3 label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants