Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions src/content/docs/fr/reference/error-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ La référence suivante est une liste complète des erreurs que vous pouvez renc
- [**DataCollectionEntryParseError**](/fr/reference/errors/data-collection-entry-parse-error/)<br/>L'analyse de l'entrée de la collection de données a échoué.
- [**DuplicateContentEntrySlugError**](/fr/reference/errors/duplicate-content-entry-slug-error/)<br/>Entrée Slug du contenu est dupliqué
- [**UnsupportedConfigTransformError**](/fr/reference/errors/unsupported-config-transform-error/)<br/>Transformation non prise en charge dans la configuration du contenu.
- [**FileParserNotFound**](/fr/reference/errors/file-parser-not-found/)<br/>Analyseur de fichiers introuvable
- [**FileGlobNotSupported**](/fr/reference/errors/file-glob-not-supported/)<br/>Les motifs glob ne sont pas pris en charge dans le chargeur file

# Erreurs d'Action

Expand Down
22 changes: 22 additions & 0 deletions src/content/docs/fr/reference/errors/file-glob-not-supported.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
# 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.

title: Les motifs glob ne sont pas pris en charge dans le chargeur file
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 />


> **FileGlobNotSupported**: Glob patterns are not supported in the `file` loader. Use the `glob` loader instead.

## Qu'est-ce qui a mal tourné ?
Le chargeur `file` doit recevoir un seul fichier local. Les motifs glob ne sont pas pris en charge. Utilisez le chargeur `glob` intégré pour créer des entrées à partir de motifs comprenant plusieurs fichiers locaux.

**Voir aussi :**
- [Chargeurs intégrés d'Astro](/fr/guides/content-collections/#chargeurs-intégrés)
13 changes: 13 additions & 0 deletions src/content/docs/fr/reference/errors/file-parser-not-found.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Analyseur de fichiers introuvable
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **FileParserNotFound**: No parser was found for 'FILE_NAME'. Pass a parser function (e.g. `parser: csv`) to the `file` loader.

## Qu'est-ce qui a mal tourné ?
Le chargeur `file` ne peut pas déterminer quel analyseur utiliser. Veuillez fournir un analyseur personnalisé (par exemple `toml.parse` ou `csv-parse`) pour créer une collection à partir de votre type de fichier.

**Voir aussi :**
- [Transmettre un analyseur (`parser`) au chargeur `file`](/fr/guides/content-collections/#fonction-parser)