diff --git a/packages/manager/apps/account/webpack.config.js b/packages/manager/apps/account/webpack.config.js index 8a5ec6880b6b..05f41047ac96 100644 --- a/packages/manager/apps/account/webpack.config.js +++ b/packages/manager/apps/account/webpack.config.js @@ -84,6 +84,9 @@ module.exports = (env = {}) => { path.resolve(__dirname, '../../../node_modules'), ], mainFields: ['module', 'browser', 'main'], + fallback: { + buffer: require.resolve('buffer/'), + }, }, plugins: [ new webpack.ContextReplacementPlugin( @@ -96,6 +99,9 @@ module.exports = (env = {}) => { : '"development"', __NG_APP_INJECTIONS__: getNgAppInjections(['EU', 'CA', 'US']), }), + new webpack.ProvidePlugin({ + Buffer: ['buffer', 'Buffer'], + }), ], }); };