-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error initialising Intercom in app.module.ts #22
Comments
Okay, for some strange reason this now works, I've installed intercom again by using |
The beta has been moved to the |
I've used user_id in my component when I wanted to display the intercom chat widget. I used the exact same code as the example in readme and initially i get Intercom.init is deprecated and will be removed in a future release. Please use Intercom.boot. After I replace to this.intercom.boot nothing happens. No errors in the console. not widget in the corner. |
To clarify: |
No, nothing works, the only difference is that init throws console warning and boot doesn't show anything. In both cases, I don't see the chat widget in the corner. Just to test it, I've included a vanilla JS code in my index.html file in the header and the chat button shows up, so it's definitely an issue with the library. |
@newPrimitives Can you please share a repo so I can see the issue? |
It's a private repo but here's how I integrate it in the component: In the app.module.ts
In the component:
For the sake of testing I just want to see a blue chat bubble in the bottom right corner. |
just call |
If that is the issue, let me know so I can fix the docs |
Unfortunately, not. My IntercomConfig looks like this:
so app_id instead of appId throws an error. Calling just this.intercom.boot() doesn't help either. |
What version are you on? |
npm-list shows ng-intercom@1.0.0-beta.6 |
Ok I’ll try to take a look tonight. Thanks for letting us know! |
Thank you, let me know the results, really appreciate it. |
I'm having the same issue. I've been investigating a bit:
The only issue that I encounter now is that I can't use |
I'm beginning to think it's something wrong with loading intercom asynchronously. I may need to dive in and investigate more. PRs would be accepted and greatly appreciated |
Update: I can reproduce this error. It seems to be a whitelist error, but it could be something entirely different. Open to suggestions and PRs. |
Alright folks, I just released beta.7. Thanks for your patience! I've verified that it is working locally. As an aside, make sure that you have whitelisted |
I've installed Intercom through
npm install ng-intercom@beta --save
When trying to import the Intercom in app.module.ts
I get the following two errors:
I'm using Angular 4.
The text was updated successfully, but these errors were encountered: