Closed aFuzzyBear closed 2 years ago
This isn't supported by Vite, unfortunately. But it shouldn't be silently failing! I wonder if there's a warning that we're accidentally hiding that would help.
As a workaround, you can always over-fetch and then filter after the fact with .filter()
to remove the items you don't need.
awesome, thanks @FredKSchott , this would need to be documented a bit clearer and lke you mentioned have some form of warning just to assist the dx. Ill relay this back to the support thread it was raised in.
What version of
astro
are you using?0.21.0
What package manager are you using?
npm
What operating system are you using?
linux - Stackblitz
Describe the Bug
This issue is raised as part of escalating the support issue :
Question about
fetchContent
The issue relates to some of the behaviour that seems to be a bit different under the new compiler, the following patterns of behaviour do not work.
The following do
Could this please be investigated further to clarify the position on variables and string literals with
fetchContent
.Many Thanks,
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-qe8ifc-x993yc?file=src/pages/fetch.astro