From 3c9005d23f781e64b192e25275d806a5c1f4fe3e Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Wed, 13 Mar 2024 22:48:48 +0100 Subject: [PATCH] Fixed folder not present. --- src/static/js/pluginfw/installer.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/static/js/pluginfw/installer.ts b/src/static/js/pluginfw/installer.ts index 67cc3736c..0d2c2d334 100644 --- a/src/static/js/pluginfw/installer.ts +++ b/src/static/js/pluginfw/installer.ts @@ -116,6 +116,8 @@ export const checkForMigration = async () => { await fs.symlink(path.join(pluginInstallPath,file), path.join(node_modules,moduleName), 'dir') } } + }).catch(()=>{ + logger.debug('plugin directory does not exist'); }) const fileContent = await fs.readFile(installedPluginsPath); const installedPlugins = JSON.parse(fileContent.toString());