jsdevtom / distinct-until-changed-immutable

Like distinctUntilChanged(), but with immutable values

Home Page:https://toms.blog/distinct-until-changed-immutable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR TypeError: Class constructor Subscriber cannot be invoked without 'new'

agonhasani opened this issue · comments

Getting this error when trying to use the library in an Angular 8 project.

ERROR TypeError: Class constructor Subscriber cannot be invoked without 'new'

This happens only when the target in tsconfig.ts is set to es2015.

A workaround is to set the target to es5 but then this disables differential loading in Angular.