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
3 changes: 3 additions & 0 deletions src/content/docs/zh-cn/reference/error-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
- [**FailedToLoadModuleSSR**](/zh-cn/reference/errors/failed-to-load-module-ssr/)<br/>Could not import file.
- [**InvalidGlob**](/zh-cn/reference/errors/invalid-glob/)<br/>Invalid glob pattern.
- [**FailedToFindPageMapSSR**](/zh-cn/reference/errors/failed-to-find-page-map-ssr/)<br/>Astro couldn't find the correct page to render
- [**MissingLocale**](/zh-cn/reference/errors/missing-locale/)<br/>The provided locale does not exist.
- [**CantRenderPage**](/zh-cn/reference/errors/cant-render-page/)<br/>Astro can't render the route.
- [**UnhandledRejection**](/zh-cn/reference/errors/unhandled-rejection/)<br/>Unhandled rejection
## CSS 错误

- [**UnknownCSSError**](/zh-cn/reference/errors/unknown-csserror/)<br/>Unknown CSS Error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> `COLLECTION_NAME` 包含 `ACTUAL_TYPE` 类型的条目,但却配置为 `EXPECTED_TYPE` 集合
> **ContentCollectionTypeMismatchError**:集合 COLLECTION 包含了 EXPECTED_TYPE 类型的条目,但是它被配置为 ACTUAL_TYPE 类型的集合

## 哪里发生了错误?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> `COLLECTION_NAME` 同时包含了内容和数据条目。所有条目必须是相同的类型。
> **MixedContentDataCollectionError**: **COLLECTION_NAME** 同时包含了内容和数据条目。所有条目必须是相同的类型。

## 哪里发生了错误?

Expand Down