-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
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
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,24 @@ | ||
--- | ||
# NOTE: This file is auto-generated from 'scripts/error-docgen.mjs' | ||
# Do not make edits to it directly, they will be overwritten. | ||
# Instead, change this file: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts | ||
# Translators, please remove this note and the <DontEditWarning/> component. | ||
|
||
layout: ~/layouts/MainLayout.astro | ||
title: Invalid component arguments. | ||
i18nReady: true | ||
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts | ||
--- | ||
import DontEditWarning from '../../../../components/DontEditWarning.astro' | ||
|
||
<DontEditWarning /> | ||
|
||
|
||
> **Example error messages:**<br/> | ||
InvalidComponentArgs: Invalid arguments passed to <MyAstroComponent> component. (E03020) | ||
## What went wrong? | ||
Astro components cannot be rendered manually via a function call, such as `Component()` or `{items.map(Component)}`. Prefer the component syntax `<Component />` or `{items.map(item => <Component {...item} />)}`. | ||
|
||
|
||
|