CaliStyle / ng-intercom

Angular 7+ Wrapper for Intercom.com
MIT License
54 stars 46 forks source link

Property 'init' does not exist on type 'Intercom' #33

Closed epoxy closed 6 years ago

epoxy commented 6 years ago

In the readme regarding ngOnInit() it says that the following line should be used:

this.intercom.init({

This gives me the error:

Property 'init' does not exist on type 'Intercom'

This error only occurred for version 1.0.0-beta.11 and not for 1.0.0-beta.10. I managed to fix it by using update instead of init. Perhaps the line in the readme should be changed to:

this.intercom.update({

wbhob commented 6 years ago

init is not actually an Intercom method anymore. Use boot to match the official intercom docs.