Hi, I am having the same problem here, after some investigation i found out that:
1. the error is generated from webpack compiler (angular ng build, in mycase)
2. dependency that still use the method self instead of this.
unfortunately, at this momenet, i am still struggling with this error...