-
Notifications
You must be signed in to change notification settings - Fork 74
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
"TypeError: window.Intercom is not a function" after react 16 upgrade #41
Comments
The Intercom initialization code should be moved from the constructor to the |
@bsonntag good point, looking at the code now I'm not sure if there was some reason for it being in the constructor other than because |
@nhagen I'm sorry, I thought this error was on the server. |
I was running into this... I had created an activator for intercom with an id of "Intercom". This conflicted with window.Intercom. Changing my selector to |
You can avoid this kind of error by checking the existence of window before doing something on it |
I upgraded my NextJS project to NextJS 4 & React 16 and react-intercom stopped working. Gives
TypeError: window.Intercom is not a function
on browser-side.
Any ideas?
The text was updated successfully, but these errors were encountered: