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
I have encountered a problem with the @nuxt/image module when using it inside a <template> tag. Images are not generated correctly when running nuxt generate, although they work fine in development mode ( nuxt dev ).
When running nuxt dev - the image will be displayed correctly.
When I run nuxt generate and try to open the page, the image is not generated and the browser shows a 404 error http://localhost:3000/_ipx/f_webp/img/example.webp
<template #panel>
Expected behavior: The image should be generated and available during static generation, similar to how it works in development mode.
The image is not generated during static site generation and the page shows a 404 error when trying to load the image. However, the image works fine when running nuxt dev.
Additional information:
This issue seems to be related specifically to the use of NuxtImg inside a tag with a named slot ( #panel in this case).
The images work fine in development mode, but are not generated during static build.
I have verified that the images are correctly placed.
When I remove the slot ( without #panel), the image is generated correctly during static build. But adding #panel or any other gives an error.
The text was updated successfully, but these errors were encountered:
w33bvGL
changed the title
Изображения внутри <template [tag]>не генерируются во время nuxt generate, но работают в режиме разработки
Images inside <template [tag]> are not generated during nuxt generate, but work in NuxtImg NuxtUI development mode
Nov 22, 2024
w33bvGL
changed the title
Images inside <template [tag]> are not generated during nuxt generate, but work in NuxtImg NuxtUI development mode
Images inside <template [tag]> are not generated during nuxt generate, but work in development mode
Nov 22, 2024
I have encountered a problem with the @nuxt/image module when using it inside a
<template>
tag. Images are not generated correctly when running nuxt generate, although they work fine in development mode ( nuxt dev ).When running
nuxt dev
- the image will be displayed correctly.When I run
nuxt generate
and try to open the page, the image is not generated and the browser shows a 404 error http://localhost:3000/_ipx/f_webp/img/example.webp<template #panel>
Expected behavior: The image should be generated and available during static generation, similar to how it works in development mode.
The image is not generated during static site generation and the page shows a 404 error when trying to load the image. However, the image works fine when running nuxt dev.
package.json
Additional information:
This issue seems to be related specifically to the use of NuxtImg inside a tag with a named slot ( #panel in this case).
The images work fine in development mode, but are not generated during static build.
I have verified that the images are correctly placed.
When I remove the slot ( without #panel), the image is generated correctly during static build. But adding #panel or any other gives an error.
The text was updated successfully, but these errors were encountered: