-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
content-loader-returns-invalid-id.mdx
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/content/docs/zh-cn/reference/errors/content-loader-returns-invalid-id.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: Content loader returned an entry with an invalid id. | ||
i18nReady: true | ||
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts | ||
--- | ||
|
||
> **错误信息示例:**<br/> | ||
集合 **blog** 的内容加载器返回了一个具有无效 `id` 的条目:<br/> | ||
{<br/> | ||
"id": 1,<br/> | ||
"title": "Hello, World!"<br/> | ||
} | ||
|
||
## 哪里出了问题? | ||
内容加载器返回了无效的 `id`。 | ||
请确保条目的 `id` 为字符串。 | ||
有关更多信息,请参阅 [内容集合文档](/zh-cn/guides/content-collections/)。 |