swimlane / ngx-dnd

🕶 Drag, Drop and Sorting Library for Angular2 and beyond!
https://swimlane.github.io/ngx-dnd/
MIT License
575 stars 135 forks source link

Error in polyfills after migrate on angular 9 #158

Closed vaydich closed 3 years ago

vaydich commented 4 years ago

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

Screenshot 2020-04-06 at 13 06 36

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?

Hypercubed commented 4 years ago

See if this helps: https://github.com/swimlane/ngx-dnd/blob/master/src/polyfills.ts#L83