We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
astro
1.4.4
None
yarn
macOS
When using Astro.glob() with .astro files (so for example, await Astro.glob("/src/pages/news/*.astro"))
Astro.glob()
.astro
await Astro.glob("/src/pages/news/*.astro")
is:global
https://stackblitz.com/edit/github-ysxamc?file=src/pages/index.astro
The text was updated successfully, but these errors were encountered:
This is a duplicate of #3816
A known limitation of Astro.glob. We're going to be working on an alternative API to fix this problem when you only want the metadata about a page.
Sorry, something went wrong.
No branches or pull requests
What version of
astro
are you using?1.4.4
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn
What operating system are you using?
macOS
Describe the Bug
When using
Astro.glob()
with.astro
files (so for example,await Astro.glob("/src/pages/news/*.astro")
)is:global
styles used on any component within that Astro file (even imported components) are immediately appliedLink to Minimal Reproducible Example
https://stackblitz.com/edit/github-ysxamc?file=src/pages/index.astro
Participation
The text was updated successfully, but these errors were encountered: