Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/content/docs/zh-cn/reference/error-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
- [**InvalidContentEntryDataError**](/zh-cn/reference/errors/invalid-content-entry-data-error/)<br/>Content entry data does not match schema.
- [**ContentLoaderReturnsInvalidId**](/zh-cn/reference/errors/content-loader-returns-invalid-id/)<br/>Content loader returned an entry with an invalid `id`.
- [**ContentEntryDataError**](/zh-cn/reference/errors/content-entry-data-error/)<br/>Content entry data does not match schema.
- [**LiveContentConfigError**](/zh-cn/reference/errors/live-content-config-error/)<br/>Error in live content config.
- [**ContentLoaderInvalidDataError**](/zh-cn/reference/errors/content-loader-invalid-data-error/)<br/>Content entry is missing an ID
- [**InvalidContentEntrySlugError**](/zh-cn/reference/errors/invalid-content-entry-slug-error/)<br/>Invalid content entry slug.
- [**ContentSchemaContainsSlugError**](/zh-cn/reference/errors/content-schema-contains-slug-error/)<br/>Content Schema should not contain `slug`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/

## 哪里发生了错误?

`type: 'data'` 的集合条目必须返回一个包含有效 JSON(对于 `.json` 条目)YAML(对于 `.yaml` 条目)的对象。
`type: 'data'` 的集合条目必须返回一个包含有效 JSON(对于 `.json` 条目)YAML(对于 `.yaml` 条目)或 TOML(对于 `.toml` 条目)的对象。
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/

## 哪里出了问题?

`file` 加载器无法确定需要使用哪个解析器。请提供一个自定义解析器(例如:`toml.parse` 或 `csv-parse`)用以从文件内容来创建集合。
`file` 加载器无法确定需要使用哪个解析器。请提供一个自定义解析器(例如:`csv-parse`)用以从文件内容来创建集合。

**另见:**

Expand Down