Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 998 Bytes

mixed-content-data-collection-error.mdx

File metadata and controls

24 lines (16 loc) · 998 Bytes
title Content and data cannot be in same collection.
i18nReady true
githubURL https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts

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

MixedContentDataCollectionError: COLLECTION_NAME contains a mix of content and data entries. All entries must be of the same type.

What went wrong?

A legacy content collection cannot contain a mix of content and data entries. You must store entries in separate collections by type.

See Also: