From 6cf74c3bbdde312eb6f457e4fc1f62c6f9e60fbb Mon Sep 17 00:00:00 2001 From: Kevin_Ramirez Date: Tue, 2 Jun 2026 08:56:01 -0500 Subject: [PATCH] fix(exchange-rate-guard): evitar SSR de CreateEditDialog con {#if browser} MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dialog.Portal intenta instanciar clases del DOM durante SSR causando 'Class constructors cannot be invoked without new' en GET /dashboard. El diálogo es puramente client-side, no necesita renderizado en servidor. Co-Authored-By: Claude Opus 4.7 --- .../dashboard/exchange_rate/exchange-rate-guard.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/dashboard/exchange_rate/exchange-rate-guard.svelte b/frontend/src/lib/components/dashboard/exchange_rate/exchange-rate-guard.svelte index 47e19ee7..33164161 100644 --- a/frontend/src/lib/components/dashboard/exchange_rate/exchange-rate-guard.svelte +++ b/frontend/src/lib/components/dashboard/exchange_rate/exchange-rate-guard.svelte @@ -1,5 +1,6 @@ - +{#if browser} + +{/if}