ERROR ReferenceError: Buffer is not defined phin code example
Example: ReferenceError: Buffer is not defined
(window as any).global = window;
// @ts-ignore
window.Buffer = window.Buffer || require('buffer').Buffer;
(window as any).global = window;
// @ts-ignore
window.Buffer = window.Buffer || require('buffer').Buffer;