You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The $img function correctly generates the image on nuxt generate and returns the url to the generated image, but when viewing the generated page the returned url is incorrect and the image does not load.
For example the following (simplified) code in a page component:
Looking at the page source of the generated page output I can see the correct file path has been mapped and used (e.g. /_nuxt/image/9014ee.jpg). So it is only the client side mapping that is not currently working correctly, and only for an image directly produced with $img, the NuxtImg images are fine. So I'm wondering if there is something missing in the way I'm calling $img?
It appears to be a mapping problem seen on this line where there is no match in staticImageManifest for the image.url. Possibly the manifest isn't fully generated at that point?
The
$img
function correctly generates the image onnuxt generate
and returns the url to the generated image, but when viewing the generated page the returned url is incorrect and the image does not load.For example the following (simplified) code in a page component:
When running
nuxt generate
the following is shown in the output:But when viewing the generated page, console displays:
This is also the url passed to the
:image
prop in the generated page, which is not the$img
generated image.How is it possible to obtain and use the correctly generated
/_nuxt/image/***
url when using the$img
function?The text was updated successfully, but these errors were encountered: