I encountered Error Uncaught TypeError: util.inherits is not a function while upgrading to webpack 2.
I traced the cause to "inherits": "2.0.1" instead of "^2.0.1" or the like. This has a cascading effect from inherits to util to assert to node-libs-browser and finally, to webpack itself.
Adding to my package.json:
"dependencies": {
"inherits": "^2.0.3"
and to my webpack.config.js:
resolve: {
alias: {
inherits$: path.resolve(__dirname, 'node_modules/inherits')
is my current hideous workaround.
I encountered Error
Uncaught TypeError: util.inherits is not a functionwhile upgrading to webpack 2.I traced the cause to
"inherits": "2.0.1"instead of"^2.0.1"or the like. This has a cascading effect frominheritstoutiltoasserttonode-libs-browserand finally, towebpackitself.Adding to my
package.json:and to my
webpack.config.js:is my current hideous workaround.