You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Collection references cannot be defined as an array in the content collection schema. Tested with the file loader; haven't seen results with the glob loader yet. Restart the server in the stackblitz and the error should show.
Submitted issue from my own findings and this reply here: #12616 (comment)
Hi. I can't reproduce it using your example. First it fails because it's referencing an invalid tag, but when I fix that it doesn't give an error. Can you check it and try again. Also ensure you're using 5.1.2 in your site.
Hello @shockch4rge. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs repro will be closed if they have no activity within 3 days.
Hi, I've updated to 5.1.2 and regenerated the .astro folder at the same time, and my issue seems to have gone away, but the 5.1.2 changelog doesn't seem to mention such a fix.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Collection references cannot be defined as an array in the content collection schema. Tested with the file loader; haven't seen results with the glob loader yet. Restart the server in the stackblitz and the error should show.
Submitted issue from my own findings and this reply here: #12616 (comment)
What's the expected result?
You should be able to define collection reference arrays, as seen in this example from the astro docs: https://docs.astro.build/en/guides/content-collections/#defining-collection-references
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-rzbnajjs?file=src%2Fcontent.config.ts
Participation
The text was updated successfully, but these errors were encountered: