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 am experiencing an issue with the Nuxt Img component when using an SVG file in my Nuxt 3 application. The SVG image renders correctly in SSR mode, but when I build the application using the nuxt generate command for client-side rendering, the image appears broken.
Here is the relevant code snippet that causes the issue:
I have tried removing the :placeholder and format properties, but the issue persists. The path to the SVG file is located in the ~/imgs/ directory. Interestingly, other image formats, such as JPG, work perfectly with the same setup:
I am experiencing an issue with the Nuxt Img component when using an SVG file in my Nuxt 3 application. The SVG image renders correctly in SSR mode, but when I build the application using the
nuxt generate
command for client-side rendering, the image appears broken.Here is the relevant code snippet that causes the issue:
I have tried removing the
:placeholder
andformat
properties, but the issue persists. The path to the SVG file is located in the~/imgs/
directory. Interestingly, other image formats, such as JPG, work perfectly with the same setup:You can find the project repository, where the error occurs, at the following link: Nuxt 3 Fullstack Portfolio.
Could you please assist me in resolving this issue? Thank you!
The text was updated successfully, but these errors were encountered: