Skip to content

Commit

Permalink
ci: update error reference docs (#9562)
Browse files Browse the repository at this point in the history
Co-authored-by: delucis <[email protected]>
  • Loading branch information
astrobot-houston and delucis authored Oct 4, 2024
1 parent 0bf7c31 commit d09c563
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/content/docs/en/reference/error-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ The following reference is a complete list of the errors you may encounter while
## Content Collection Errors

- [**UnknownContentCollectionError**](/en/reference/errors/unknown-content-collection-error/)<br/>Unknown Content Collection Error.
- [**RenderUndefinedEntryError**](/en/reference/errors/render-undefined-entry-error/)<br/>Attempted to render an undefined content collection entry.
- [**GetEntryDeprecationError**](/en/reference/errors/get-entry-deprecation-error/)<br/>Invalid use of `getDataEntryById` or `getEntryBySlug` function.
- [**InvalidContentEntryFrontmatterError**](/en/reference/errors/invalid-content-entry-frontmatter-error/)<br/>Content entry frontmatter does not match schema.
- [**InvalidContentEntrySlugError**](/en/reference/errors/invalid-content-entry-slug-error/)<br/>Invalid content entry slug.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import DontEditWarning from '~/components/DontEditWarning.astro'
> **AstroGlobUsedOutside**: `Astro.glob(GLOB_STR)` can only be used in `.astro` files. `import.meta.glob(GLOB_STR)` can be used instead to achieve a similar result.
## What went wrong?
`Astro.glob()` can only be used in `.astro` files. You can use [`import.meta.glob()`](https://vitejs.dev/guide/features.html#glob-import) instead to achieve the same result.
`Astro.glob()` can only be used in `.astro` files. You can use [`import.meta.glob()`](https://vite.dev/guide/features.html#glob-import) instead to achieve the same result.

**See Also:**
- [Astro.glob](/en/reference/api-reference/#astroglob)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# NOTE: This file is auto-generated from 'scripts/error-docgen.mjs'
# Do not make edits to it directly, they will be overwritten.
# Instead, change this file: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
# Translators, please remove this note and the <DontEditWarning/> component.

title: Attempted to render an undefined content collection entry.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---
import DontEditWarning from '~/components/DontEditWarning.astro'

<DontEditWarning />


## What went wrong?
Astro tried to render a content collection entry that was undefined. This can happen if you try to render an entry that does not exist.



Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ Vite encountered an unknown error while rendering your project. We unfortunately
If you can reliably cause this error to happen, we'd appreciate if you could [open an issue](https://astro.build/issues/)

**See Also:**
- [Vite troubleshooting guide](https://vitejs.dev/guide/troubleshooting.html)
- [Vite troubleshooting guide](https://vite.dev/guide/troubleshooting.html)


0 comments on commit d09c563

Please sign in to comment.