From 7e5cd85b8adb27fd160d6ccdf1219b0c4ed681b7 Mon Sep 17 00:00:00 2001 From: bruno Date: Wed, 29 Jul 2026 11:45:09 -0400 Subject: [PATCH] fix(excalidraw): use esm.sh ?alias param to force React 18.3.1 across entire dependency tree --- frontend/excalidraw-diag4.html | 2 +- frontend/excalidraw-editor.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/excalidraw-diag4.html b/frontend/excalidraw-diag4.html index ff6c474..603e649 100644 --- a/frontend/excalidraw-diag4.html +++ b/frontend/excalidraw-diag4.html @@ -51,7 +51,7 @@ class ErrorBoundary extends React.Component { try { window.EXCALIDRAW_ASSET_PATH = 'https://esm.sh/@excalidraw/excalidraw@0.18.0/dist/prod/'; - const ExcalidrawLib = await import('@excalidraw/excalidraw@0.18.0'); + const ExcalidrawLib = await import('https://esm.sh/@excalidraw/excalidraw@0.18.0?alias=react:react@18.3.1,react-dom:react-dom@18.3.1'); const { Excalidraw } = ExcalidrawLib; add('Excalidraw loaded', 'pass'); diff --git a/frontend/excalidraw-editor.html b/frontend/excalidraw-editor.html index df57b8a..c5debc6 100644 --- a/frontend/excalidraw-editor.html +++ b/frontend/excalidraw-editor.html @@ -107,7 +107,7 @@