Skip to content

集合包含不同类型的条目。

ContentCollectionTypeMismatchError:COLLECTION 包含 EXPECTED_TYPE 条目,但配置为 ACTUAL_TYPE 集合。

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

¥What went wrong?

内容集合必须包含已配置类型的条目。默认情况下集合为 type: 'content'。尝试将 type: 'data' 添加到你的收集配置中以进行数据收集。

¥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:

Astro 中文网 - 粤ICP备13048890号