I am trying to upgrade my Angular Application to Webpack 3 and I have the following node object in my webpack config file:
module.exports {
node: {
fs: 'empty',
global: 'true',
crypto: 'empty',
process: false,
module: false,
clearImmediate: false,
setImmediate: false
}
}
I keep on getting the following error:
Invalid configuration object. Webpack has been initialised using a
configuration object that does not match the API schema.
- configuration.node should be one of these:
false | object { Buffer?, __dirname?, __filename?, console?, global?,
process?, ... }
-> Include polyfills or mocks for various node stuff.
Details:
* configuration.node should be false
* configuration.node.global should be a boolean.
-> Include a polyfill for the 'global' variable
How can I solve this error?