Skip to content

Commit

Permalink
fix(dynamic plugins): log plugin load errors (#2006)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Jerolimov <[email protected]>
  • Loading branch information
christoph-jerolimov authored Nov 28, 2024
1 parent 2a4fc3a commit 2656e51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app/src/utils/dynamicUI/initializeRemotePlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => ({
Expand Down

0 comments on commit 2656e51

Please sign in to comment.