Skip to content

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

@agonhasani

Description

@agonhasani

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions