I’m experiencing internal Intercom error that is displayed in app’s UI (NextJS app router, @intercom/messenger-js-sdk package). This is a very unpleasant UX and I’d like to know how to prevent such behaviour.

I’m experiencing internal Intercom error that is displayed in app’s UI (NextJS app router, @intercom/messenger-js-sdk package). This is a very unpleasant UX and I’d like to know how to prevent such behaviour.
Best answer by Jacques Reynolds
Hey
Would you be able to provide details on the steps you are taking in your app when this issue occurs? Does it occur on App start or do certain actions cause the error to show?
2 potential causes of this issue that I’m thinking are:
A race condition occurs where the Messenger tries to access newSession before the Intercom object is fully available.
It might be worth it for you to reach out to our Support Team via the Messenger so they can dig deeper into this issue for you!
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.