Back to Withastro

Glob patterns are not supported in the file loader

src/content/docs/en/reference/errors/file-glob-not-supported.mdx

latest502 B
Original Source

import DontEditWarning from '~/components/DontEditWarning.astro'

<DontEditWarning />

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

What went wrong?

The file loader must be passed a single local file. Glob patterns are not supported. Use the built-in glob loader to create entries from patterns of multiple local files.

See Also: