Skip to content

Commit c6f175e

Browse files
committed
[Webpack] Compilation error fix
1 parent a286050 commit c6f175e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

webpack.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,14 @@ if ('EEG_VIS_ENABLED' in process.env) {
7676
'useEEGBrowserVisualizationComponents',
7777
], {});
7878

79-
EEGVisEnabled = JSON.parse(getConfig.stdout);
79+
try {
80+
EEGVisEnabled = JSON.parse(getConfig.stdout);
81+
} catch (e) {
82+
console.error(
83+
'Unable to fetch DB config '
84+
+ 'useEEGBrowserVisualizationComponents'
85+
);
86+
}
8087
}
8188

8289
modulePlugins.push(

0 commit comments

Comments
 (0)