diff --git a/client/webpack/base.config.js b/client/webpack/base.config.js index 50f08a1d4..a314a6991 100644 --- a/client/webpack/base.config.js +++ b/client/webpack/base.config.js @@ -61,5 +61,12 @@ module.exports = function exports() { // Add webpack version information version: false, }, + // Some libraries import Node modules but don't use them in the browser. + // Tell Webpack to provide empty mocks for them so importing them works. + node: { + fs: 'empty', + net: 'empty', + tls: 'empty', + }, }; };