Skip to content

Commit

Permalink
Add content-loader-returns-invalid-id.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
Nin3lee authored Jan 26, 2025
1 parent d4f9a82 commit f0c156b
Showing 1 changed file with 17 additions and 0 deletions.
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/>
&#123;<br/>
"id": 1,<br/>
"title": "Hello, World!"<br/>
&#125;

## 哪里出了问题?
内容加载器返回了无效的 `id`
请确保条目的 `id` 为字符串。
有关更多信息,请参阅 [内容集合文档](/zh-cn/guides/content-collections/)

0 comments on commit f0c156b

Please sign in to comment.