To Solve Uncaught ReferenceError: Buffer is not defined Error You need to add ProvidePlugin in webpack.config.js and then your error will be solved. First of all, open your webpack.config.js and add ProvidePlugin in the plugins section Just like This: new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'], }), And now, Your error will be solved. Thank You.