Référence des erreurs
La référence suivante est une liste complète des erreurs que vous pouvez rencontrer lors de l’utilisation d’Astro. Pour une assistance supplémentaire, y compris les pièges courants, veuillez également consulter notre Guide de dépannage.
Erreurs d’Astro
Section titled Erreurs d’Astro- UnknownCompilerError (EN)
Unknown compiler error. - StaticRedirectNotAvailable (EN)
Astro.redirect
is not available in static mode. - ClientAddressNotAvailable (EN)
Astro.clientAddress
is not available in current adapter. - StaticClientAddressNotAvailable (EN)
Astro.clientAddress
is not available in static mode. - NoMatchingStaticPathFound (EN)
No static path found for requested path. - OnlyResponseCanBeReturned (EN)
Invalid type returned by Astro page. - MissingMediaQueryDirective (EN)
Missing value forclient:media
directive. - NoMatchingRenderer (EN)
No matching renderer found. - NoClientEntrypoint (EN)
No client entrypoint specified in renderer. - NoClientOnlyHint (EN)
Missing hint onclient:only
directive. - InvalidGetStaticPathParam (EN)
Invalid value returned by agetStaticPaths
path. - InvalidGetStaticPathsReturn (EN)
Invalid value returned by getStaticPaths. - GetStaticPathsRemovedRSSHelper (EN)
getStaticPaths RSS helper is not available anymore. - GetStaticPathsExpectedParams (EN)
Missing params property ongetStaticPaths
route. - GetStaticPathsInvalidRouteParam (EN)
Invalid value forgetStaticPaths
route parameter. - GetStaticPathsRequired (EN)
getStaticPaths()
function required for dynamic routes. - ReservedSlotName (EN)
Invalid slot name. - NoAdapterInstalled (EN)
Cannot use Server-side Rendering without an adapter. - NoMatchingImport (EN)
No import found for component. - InvalidPrerenderExport (EN)
Invalid prerender export. - InvalidComponentArgs (EN)
Invalid component arguments. - PageNumberParamNotFound (EN)
Page number param not found. - ImageMissingAlt (EN)
Missing alt property. - InvalidImageService (EN)
Error while loading image service. - MissingImageDimension (EN)
Missing image dimensions - UnsupportedImageFormat (EN)
Unsupported image format - PrerenderDynamicEndpointPathCollide (EN)
Prerendered dynamic endpoint has path collision. - ExpectedImage (EN)
Expected src to be an image. - ExpectedImageOptions (EN)
Expected image options. - MarkdownImageNotFound (EN)
Image not found. - ResponseSentError (EN)
Unable to set response. - MiddlewareNoDataOrNextCalled (EN)
The middleware didn’t return a response or callnext
. - MiddlewareNotAResponse (EN)
The middleware returned something that is not aResponse
object. - LocalImageUsedWrongly (EN)
ESM imported images must be passed as-is. - LocalsNotAnObject (EN)
Value assigned tolocals
is not accepted. - AstroGlobUsedOutside (EN)
Astro.glob() used outside of an Astro file. - AstroGlobNoMatch (EN)
Astro.glob() did not match any files. - RedirectWithNoLocation (EN)
A redirect must be given a location with theLocation
header. - InvalidDynamicRoute (EN)
Invalid dynamic route. - UnknownViteError (EN)
Unknown Vite Error. - FailedToLoadModuleSSR (EN)
Could not import file. - InvalidGlob (EN)
Invalid glob pattern. - FailedToFindPageMapSSR (EN)
Astro couldn’t find the correct page to render
Erreurs de CSS
Section titled Erreurs de CSS- UnknownCSSError
Unknown CSS Error. - CSSSyntaxError
CSS Syntax Error.
Erreurs de Markdown
Section titled Erreurs de Markdown- UnknownMarkdownError
Unknown Markdown Error. - MarkdownFrontmatterParseError
Failed to parse Markdown frontmatter. - InvalidFrontmatterInjectionError
Invalid frontmatter injection. - MdxIntegrationMissingError
MDX integration missing. - UnknownConfigError
Unknown configuration error. - ConfigNotFound
Specified configuration file not found. - ConfigLegacyKey
Legacy configuration detected.
Erreurs du CLI
Section titled Erreurs du CLI- UnknownCLIError
Unknown CLI Error. - GenerateContentTypesError
Failed to generate content types.
Erreurs de Collection de Contenu
Section titled Erreurs de Collection de Contenu- UnknownContentCollectionError
Unknown Content Collection Error. - InvalidContentEntryFrontmatterError
Content entry frontmatter does not match schema. - InvalidContentEntrySlugError
Invalid content entry slug. - ContentSchemaContainsSlugError
Content Schema should not containslug
. - CollectionDoesNotExistError
Collection does not exist - MixedContentDataCollectionError
Content and data cannot be in same collection. - ContentCollectionTypeMismatchError
Collection contains entries of a different type. - DataCollectionEntryParseError
Data collection entry failed to parse. - DuplicateContentEntrySlugError (EN)
Duplicate content entry slug. - UnsupportedConfigTransformError (EN)
Unsupported transform in content config.