kutlugsahin / ngx-smooth-dnd

angular wrapper for smooth-dnd
165 stars 30 forks source link

angular cli with build-optimizer gives runtime error #8

Closed arins closed 5 years ago

arins commented 6 years ago

When using angular cli version 6.0.5 with a lazy loading route I get following error

Uncaught (in promise): ReferenceError: SmoothDnD is not defined

If i set --build-optimizer=false on ng-cli I don't get that error.

arins commented 6 years ago

found an ugly hack for this import SmoothDnD from 'smooth-dnd'; window['SmoothDnD'] = SmoothDnD;

arins commented 5 years ago

This issue seems to be solved in later cli versions