diff --git a/data-room-ui/packages/RemoteComponents/remoteComponentsList.js b/data-room-ui/packages/RemoteComponents/remoteComponentsList.js index 5c1a3236..5375e99f 100644 --- a/data-room-ui/packages/RemoteComponents/remoteComponentsList.js +++ b/data-room-ui/packages/RemoteComponents/remoteComponentsList.js @@ -8,8 +8,18 @@ const innerRemoteComponents = [] files.keys().forEach(key => { const title = key.split('/')[1].replace('.vue', '') - const img = require(`./innerComponents/${title}/component.png`) - const config = require(`./innerComponents/${title}/config.js`).default + let img = null + let config = {} + try { + img = require(`./innerComponents/${title}/component.png`) + } catch (error) { + console.log(error) + } + try { + config = require(`./innerComponents/${title}/config.js`).default + } catch (error) { + + } innerRemoteComponents.push({ title: config.title || title, vueSysComponentDirName: 'inner_' + title,