After migrate on angular 9 while ng serve i face with error
ERROR in src/polyfills.ts:93:3 - error TS2739: Type 'Window & typeof globalThis' is missing the following properties from type 'Global': Buffer, GLOBAL, root, gc
in my polyfill file as you recommend i put
if (typeof window['global'] === 'undefined') {
window['global'] = window;
}
Hi.
After migrate on angular 9 while ng serve i face with error
ERROR in src/polyfills.ts:93:3 - error TS2739: Type 'Window & typeof globalThis' is missing the following properties from type 'Global': Buffer, GLOBAL, root, gc
in my polyfill file as you recommend i put
if (typeof window['global'] === 'undefined') { window['global'] = window; }
Can you explain me what's the problem?