Back to Withastro

Content and data cannot be in same collection.

src/content/docs/en/reference/errors/mixed-content-data-collection-error.mdx

latest487 B
Original Source

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

<DontEditWarning />

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: