Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ReferenceError: Buffer is not defined

(window as any).global = window;
// @ts-ignore
window.Buffer = window.Buffer || require('buffer').Buffer;
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Buffer #defined
ADD COMMENT
Topic
Name
4+3 =