Currently using https://github.com/jaredpalmer/razzle to implement SSR of a React Application. Running into the following errors within my node modules:

AND THIS

I've added a razzle.config.js to customize the razzle config to look like this(below) and the code is still not running.
module.exports = {
target: 'node',
node: {
console: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty'
}
};
Any idea as to why I'm receiving the errors and what I can do to fix?
If you want to extend the Webpack config, you need to use the modify function of the razzle.config.js export.
Example
module.exports = {
modify: config => {
config.node = { fs: "empty" };
return config;
}
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With