Back to Withastro

Content loader returned an entry with an invalid id.

src/content/docs/en/reference/errors/content-loader-returns-invalid-id.mdx

latest493 B
Original Source

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

<DontEditWarning />

Example error message:

The content loader for the collection blog returned an entry with an invalid id:

{

"id": 1,

"title": "Hello, World!"

}

What went wrong?

A content loader returned an invalid id. Make sure that the id of the entry is a string. See the Content collections documentation for more information.