phin icon indicating copy to clipboard operation
phin copied to clipboard

ReferenceError: Buffer is not defined

Open philosofonusus opened this issue 3 years ago • 0 comments

I think it would be helpful for people who decided to use it on frontend or something else that includes browser... It happens if you use webpack5+

The solution is that you need to add these lines to your webpack config

module.exports = {
  ...
  node: {
    process: true,
    Buffer: true
  }
}

philosofonusus avatar Mar 27 '21 18:03 philosofonusus