Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1 KB

File metadata and controls

24 lines (16 loc) · 1 KB
title i18nReady githubURL
Astro.glob() used outside of an Astro file.
true

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

AstroGlobUsedOutside: Astro.glob(GLOB_STR) can only be used in .astro files. import.meta.glob(GLOB_STR) can be used instead to achieve a similar result.

What went wrong?

Astro.glob() can only be used in .astro files. You can use import.meta.glob() instead to achieve the same result.

See Also: