Back to Withastro

Collection contains entries of a different type.

src/content/docs/en/reference/errors/content-collection-type-mismatch-error.mdx

latest536 B
Original Source

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

<DontEditWarning />

ContentCollectionTypeMismatchError: COLLECTION contains EXPECTED_TYPE entries, but is configured as a ACTUAL_TYPE collection.

What went wrong?

Legacy content collections must contain entries of the type configured. Collections are type: 'content' by default. Try adding type: 'data' to your collection config for data collections.

See Also: