RenderUndefinedEntryError
error when editing config with the --force
content layer flag
#12456
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: content layer
Related to the Content Layer feature (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Using content layer and developing a remark plugin inlined in my Astro config file, I'm running the
npm run dev -- --force
command to force the Astro dev server to restart when editing my plugin and having it run every time as the cache is cleared every time.Reproduction steps:
Ctrl + C
to stop the servernpm run dev -- --force
commandThe
The collection "posts" does not exist. Please ensure it is defined in your content config.
message is logged 1 or multiple times and then the following error is thrown:Note that the error can also happens sometime without even editing the config file but it seems to recover somehow.
What's the expected result?
I'm expecting the server to restart and my plugin to be re-run without any errors.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-qstek1?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: