[Bug] Intercom seems not to work on NextJS 13
colenh opened this issue · 5 comments
colenh commented
Describe the bug
In development, it works fine. However, in a production environment (https://porcify.com/), it seems to not work at all. When hovering the icon, the following error occurs.
How To Reproduce
- open your browser console
- hover over the intercom widget on https://porcify.com/
Screenshots
No response
Relevant Log Output
Uncaught TypeError: can't access property "parentNode", r is undefined
NextJS 32
m
m
v
h
onMouseEnter
l2
l7
sn
sn
sr
ss
uM
ih
ss
iU
iA
so
sa
si
si
createRoot
hydrate
4744
r
appBootstrap
4744
d
n
<anonymous>
O
c
<anonymous>
Code of Conduct
- I agree to follow this project’s Code of Conduct
SamSaprykin commented
hey @colenh, did you find solution for Next 13?
colenh commented
sadly not, i had to move to react-use-intercom
ChezMose commented
Just sharing, but I just installed react-live-chat-loader with next 13.4.2 + Intercom and it worked perfectly.
I use the app router + the [lang] folder.
SamSaprykin commented
yep, works well for me as well:
"next": "13.4.5"
"react-live-chat-loader": "^2.8.1"
benschwarz commented
Thanks for your notes @ChezMose and @SamSaprykin. Seeing as you've had it working I'm going to go ahead and close this issue.