global is not defined while using socket.io-client with webpack
global is not defined while using socket.io-client with webpack I am getting following error when i have added socket.io-client plugin in my React web app. socket.io-client Uncaught ReferenceError: global is not defined at Object../node_modules/socket.io-parser/is-buffer.js (is-buffer.js:4) at webpack_require (bootstrap:22) at Object../node_modules/socket.io-parser/binary.js (binary.js:8) at webpack_require (bootstrap:22) at Object../node_modules/socket.io-parser/index.js (index.js:8) at webpack_require (bootstrap:22) at Object../node_modules/socket.io-client/lib/index.js (index.js:7) at webpack_require (bootstrap:22) at Object../src/client/components/gettingStarted/socketest.js (socketest.js:1) at webpack_require (bootstrap:22) The following is my webpack config file. /*eslint-disable*/ var Path = require('path'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var FileChanger = require('webp...