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

ci: update error reference docs #9562

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)


Loading