Skip to content

Angular 11 is incompatible #105

@pablovargasosorio

Description

@pablovargasosorio

Got this error after updating to Angular 11:

`ERROR: node_modules/ng-intercom/src/app/ng-intercom/intercom.module.d.ts:4:45 - error TS2314: Generic type 'ModuleWithProviders' requires 1 type argument(s).

4 static forRoot(config: IntercomConfig): ModuleWithProviders;`

Versions

  • Angular: 11.2.7
  • Angular CLI: 11.2.7
  • ng-intercom: 8.0.0
  • Node.JS: 12.20.0
  • NPM: 6.14.8

Description

  • I'm including the ng-intercom module in a component-lib, not directly in the app.
  • The error is showing when just including the module in the import:
    import { Intercom } from 'ng-intercom';
  • If I remove the import line, the lib is built properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions