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 0300fbc commit ab587bfCopy full SHA for ab587bf
packages/svelte/src/internal/client/render.js
@@ -137,7 +137,10 @@ export function hydrate(component, options) {
137
return /** @type {Exports} */ (instance);
138
} catch (error) {
139
// re-throw Svelte errors - they are certainly not related to hydration
140
- if (error instanceof Error && error.message.includes('https://svelte.dev/e/')) {
+ if (
141
+ error instanceof Error &&
142
+ error.message.split('\n').some((line) => line.startsWith('https://svelte.dev/e/'))
143
+ ) {
144
throw error;
145
}
146
if (error !== HYDRATION_ERROR) {
0 commit comments