referenceerror buffer is not defined angular 9 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;