Astro.glob() 在 Astro 文件外部使用。
AstroGlobUsedOutside:
Astro.glob(GLOB_STR)只能在.astro文件中使用。可以使用import.meta.glob(GLOB_STR)来代替以获得类似的结果。¥AstroGlobUsedOutside:
Astro.glob(GLOB_STR)can only be used in.astrofiles.import.meta.glob(GLOB_STR)can be used instead to achieve a similar result.
什么地方出了错?
Section titled “什么地方出了错?”¥What went wrong?
Astro.glob() 只能在 .astro 文件中使用。你可以改用 import.meta.glob() 来实现相同的结果。
¥Astro.glob() can only be used in .astro files. You can use import.meta.glob() instead to achieve the same result.
也可以看看:
¥See Also:
Error Reference