-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
astro dev slow or unresponsive when using content collections #6173
Comments
Looking more closely at the code, I think the issue may be caused by the index page calling |
is |
I don't think it's slow, but not handling reentrant calls in dev. Basically, index.astro is calling |
Oh! I can see how we might run into this issue. cc @bholmesdev possible circular dep issue here. A smaller reproduction would be helpful, thanks! |
Here is an even smaller example, based on the Astro Basics starter. Basically the problem reared itself as soon as I added a getCollections in the Blog.layout file. |
mark |
@matthewp This is interesting, because Vite handles circular dependencies with In the meantime @ChristineTham, I'll suggest replacing your |
What version of
astro
are you using?2.0.8
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn
What operating system are you using?
Mac
Describe the Bug
Minimal example is a simple site with content collections.
astro check shows no errors
astro build and astro preview works
astro dev hangs - does not render a page.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-qcexpn
Participation
The text was updated successfully, but these errors were encountered: