We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc61559 commit 351d463Copy full SHA for 351d463
packages/svelte/src/internal/client/render.js
@@ -2540,7 +2540,7 @@ export function hydrate(component, options) {
2540
);
2541
remove(hydration_fragment);
2542
first_child.remove();
2543
- hydration_fragment.at(-1)?.nextSibling?.remove();
+ hydration_fragment[hydration_fragment.length - 1]?.nextSibling?.remove();
2544
set_current_hydration_fragment(null);
2545
return mount(component, options);
2546
} else {
0 commit comments