Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
NuxtImage Hydration mismatch - Nuxt
N
Nuxt
โข
8mo ago
โข
12 replies
Pachanca
NuxtImage Hydration mismatch
Hi everyone
am facing a Hydration mismatch issue with Nuxt image and I need some help
the project am working on is a Nuxt 3
.17
, NuxtImg 1
.10 with ipx provider
.
when i run the project in dev mode i get Hydration mismatch warning that the srcset is different between the server and the client
.
message
:
- rendered on server
: srcset
=
"
/
_ipx
/f
_webp
&s
_248x177
/
https://www.domain.com/files/image.jpg
,
/
_ipx
/f
_webp
&s
_496x354
/
https://www.domain.com/files/image.jpg
2x
"โจ
- expected on client
: srcset
=
"
/
_ipx
/f
_webp
&s
_248x177
/
https://www.domain.com/files/image.jpg
1x
,
/
_ipx
/f
_webp
&s
_496x354
/
https://www.domain.com/files/image.jpg
2x
"
as you can notice in the server the first image value doesn
't have the
"1x
"
!
in the nuxt
.config I have set
"densities
:
[1
,2
]
"
and in the template I have set the Nuxt image like this
:
<nuxt
-img densities
=
"x1 x2
" format
=
"webp
"
:src
=
"image
"
:alt
=
"imageAlt
" width
=
"120
" height
=
"75
" loading
=
"lazy
"
/
>
any suggestions why this happening and how I could fix it
?
thanks in advance Pachanca
Nuxt
Join
Nuxt Community Chat Server
31,686
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
hydration mismatch
N
Nuxt / โใปhelp
2y ago
Hydration Mismatch
N
Nuxt / โใปhelp
4y ago
Hydration mismatche
N
Nuxt / โใปhelp
16mo ago