Astro.glob() usato al di fuori di un file Astro.
AstroGlobUsedOutside:
Astro.glob(GLOB_STR)può essere usato solo in un file.astro.import.meta.glob(GLOB_STR)può essere usato per ottenere un risultato simile.
Cosa è andato storto?
Sezione intitolata Cosa è andato storto?Astro.glob() può essere usato solo in un file .astro. Puoi usare import.meta.glob() per ottenere lo stesso risultato.
Vedi anche:
Error Reference