From 2656e51ffeb8850608f45094b3b8a831c20255eb Mon Sep 17 00:00:00 2001 From: Christoph Jerolimov Date: Thu, 28 Nov 2024 09:48:35 +0100 Subject: [PATCH] fix(dynamic plugins): log plugin load errors (#2006) Signed-off-by: Christoph Jerolimov --- packages/app/src/utils/dynamicUI/initializeRemotePlugins.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/utils/dynamicUI/initializeRemotePlugins.ts b/packages/app/src/utils/dynamicUI/initializeRemotePlugins.ts index 183bccf296..4e45a18110 100644 --- a/packages/app/src/utils/dynamicUI/initializeRemotePlugins.ts +++ b/packages/app/src/utils/dynamicUI/initializeRemotePlugins.ts @@ -27,9 +27,9 @@ const initializeRemotePlugins = async ( .getExposedModule<{ [importName: string]: React.ComponentType<{}>; }>(scope, module) - .catch(() => { + .catch(error => { // eslint-disable-next-line no-console - console.error(`Failed to load plugin ${scope}`); + console.error(`Failed to load plugin ${scope}`, error); return undefined; }) .then(remoteModule => ({