Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 887 Bytes

File metadata and controls

26 lines (17 loc) · 887 Bytes
title Collection does not exist
i18nReady true
githubURL https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts

import DontEditWarning from '~/components/DontEditWarning.astro'

:::caution[Deprecated] Collections that do not exist no longer result in an error. A warning is given instead. :::

A collection queried via getCollection() does not exist.

What went wrong?

When querying a collection, ensure a collection directory with the requested name exists under src/content/.