Back to Withastro

Content collection has an invalid type field.

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

latest476 B
Original Source

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

<DontEditWarning />

Example error message:

Invalid collection type "data". Remove the type from your collection definition in your content config file.

What went wrong?

Content collections should no longer have a type field. Remove this field from your content config file. See the Astro 6 migration guide for more information.