Back to Withastro

Invalid glob pattern.

src/content/docs/en/reference/errors/invalid-glob.mdx

latest506 B
Original Source

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

<DontEditWarning />

:::caution[Deprecated] This error was removed in Astro v6.0.0 along with the removal of Astro.glob(). :::

InvalidGlob: Invalid glob pattern: GLOB_PATTERN. Glob patterns must start with './', '../' or '/'.

What went wrong?

Astro encountered an invalid glob pattern. This is often caused by the glob pattern not being a valid file path.

See Also: