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
{{ message }}
Repository navigation
SSR hydration warning: dynamic props on SVG elements are patched as properties instead of attributes #15081
Observe the [Vue warn]: Failed setting prop … error logged during hydration.
What is expected?
During hydration, dynamic props on SVG (and MathML) elements width, height, viewBox, etc. should be patched as attributes (via setAttribute) exactly as they are during normal client-side rendering. Hydration should be silent.
What is actually happening?
Since 3.5.39, dynamic props on SVG elements are patched as DOM properties during hydration, which throws for read-only SVG IDL properties:
[Vue warn]: Failed setting prop "viewBox" on <svg>: value 0 0 24 24 is invalid.
TypeError: Cannot set property viewBox of #<SVGSVGElement> which has only a getter
at patchDOMProp
at patchProp
at hydrateElement
at hydrateNode
at hydrateSubTree
at <App>
Nothing is visually broken but the console is flooded with warnings.
We ran across this issue in a Nuxt app but I believe the issue is coming from Vue core
changed the title [-]SSR hydration warning: dynamic props on SVG elements are patched as DOM properties instead of attributes[/-][+]SSR hydration warning: dynamic props on SVG elements are patched as properties instead of attributes[/+]on Jul 14, 2026
Activity
[-]SSR hydration warning: dynamic props on SVG elements are patched as DOM properties instead of attributes[/-][+]SSR hydration warning: dynamic props on SVG elements are patched as properties instead of attributes[/+]fix(hydration): pass namespace when patching dynamic props