You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`[content] Attempted to access deprecated property on "${collection}" entry.\nThe "slug" property is no longer automatically added to entries. Please use the "id" property instead.`,
hint: 'See https://docs.astro.build/en/guides/upgrade-to/v6/#removed-legacy-content-collections for more information on updating collections.',
1671
1671
}satisfiesErrorData;
1672
1672
1673
+
/**
1674
+
* @docs
1675
+
* @message
1676
+
* **Example error message:**<br/>
1677
+
* Collections must have a `loader` defined. Check your collection definitions in your content config file.<br/>
1678
+
* @description
1679
+
* A content collection is missing a `loader` definition. Make sure that each collection in your content config file has a `loader`.
1680
+
* See the [Content collections documentation](https://docs.astro.build/en/guides/content-collections/) for more information.
1681
+
*/
1682
+
1683
+
exportconstContentCollectionMissingLoader={
1684
+
name: 'ContentCollectionMissingLoader',
1685
+
title: 'Content collection is missing a `loader` definition.',
1686
+
message: (file='your content config file')=>
1687
+
`Collections must have a \`loader\` defined. Check your collection definitions in ${file}.`,
1688
+
hint: 'See https://docs.astro.build/en/guides/content-collections/ for more information on content loaders and https://docs.astro.build/en/guides/upgrade-to/v6/#removed-legacy-content-collections for more information on migrating from legacy collections.',
1689
+
}satisfiesErrorData;
1690
+
1691
+
/**
1692
+
* @docs
1693
+
* @message
1694
+
* **Example error message:**<br/>
1695
+
* Invalid collection type "data". Remove the type from your collection definition in your content config file.
1696
+
* @description
1697
+
* Content collections should no longer have a `type` field. Remove this field from your content config file.
1698
+
* See the [Astro 6 migration guide](https://docs.astro.build/en/guides/upgrade-to/v6/#removed-legacy-content-collections) for more information.
1699
+
*/
1700
+
1701
+
exportconstContentCollectionInvalidType={
1702
+
name: 'ContentCollectionInvalidType',
1703
+
title: 'Content collection has an invalid `type` field.',
`Invalid collection type "${type}". Remove the type from your collection definition in ${file}.`,
1706
+
hint: 'See https://docs.astro.build/en/guides/upgrade-to/v6/#removed-legacy-content-collections for more information on migrating from legacy collections.',
0 commit comments