Cannot read property 'CustomEvent' of undefined: Angular 8
I am getting an error below in my angular 8 application
Uncaught TypeError: Cannot read property 'CustomEvent' of undefined
at Object.
I am using Typescript : 3.5.3 It works okay with Angular 6 (typescript: 2.5) just wondering if you have any idea what can cause this error
thanks
I am getting the same error.
Same error with Svelte
I experienced the same error: it's caused by the version of webpack, it's not related to the code of table dragger. I think this could be fixed easily by upgrading the version of webpack in package.json.
@sindu12jun if you have time to do the upgrade it would be great, otherwise let me know, I might find time to open a branch and do it myself
Actually, no. The real culprit of this bug is the dependency on "dragula": https://github.com/bevacqua/dragula.
Actually, no. The real culprit of this bug is the dependency on "dragula": https://github.com/bevacqua/dragula.
So, how can I fix this problem?
I was having the same error but couldn't figure out how global is undefined when module.exports is defaulted to and empty object. when importing dragula dependency. So as a workaround, you can load it as a normal javascript script file (script tag of type="text/javascript") and then use tableDragger.default.
Any updation for the above issues?
Is this issue resolved? Or any alternative solution for this library is there for angular ?