Dynamic Import of images using import.meta.glob() as described in the Documentation is causing error: ts(2322) #5695
Labels
help wanted
Issues looking for someone to run with them!
improve documentation
Enhance existing documentation (e.g. add an example, improve description)
In a project i started on v3, i used dynamic image importing as described in the Astro Documentation and it worked as expected.
This is the code:
Since i upgraded the project to Astro 4.0, i get the following error on the
src
property:Despite the error, the images still show up on the dev server. However,
astro build
fails because of this.The text was updated successfully, but these errors were encountered: