Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true. . .
Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
Hello guys, sorry to disturb you all, can someone explain what this error is all about please, I didn't understand why I obtain this error, here is my script:
21 Replies
this bit doesn't seem to have any issues, think something else is interacting with it.
are you using a framework or just vanilla j?
It could also be a browser extension that interferes
can you recreate the problem in a codepen?
hmm vanilla js, yeah wait
https://codepen.io/Fakeur/pen/BaXVYYY
here is the link
Untitled
...
hmm browser extension, like a extension downloaded from google library for eg?
for me it seems to just work. What device/browser do you use?
I'm using google chrome
i tested in chrome, edge and firefox on windows
(the 'meta' was my windows key to screengrab)
hmm strange, it's not the first time I'm having this error, the code works but I get this error
can you screenshot the error from the devtools console
yep wait
Perhaps it’s something to do with not having defer applied?
then it wouldnt find the element to attach the eventlistener too, but that doesnt seem to be the issue
hmm I didn't obtain the error this time but I guess you were right when you said that may be browser extensions were inferering, I believe the grammerly browser extension can intefere
grammerly is an extenstion I suppose, yes
https://www.grammarly.com/
grammarly was a good extension to help fix grammar issues
that's probably what's causing the error
just check the path of the
grammarly.js
file path, by clicking on ithmm here is what I obtain when I click on one of the link
that's not being included by codepen, so
try to disable grammarly and see if it still happens
yeah the problem was with the extension
maybe they will fix it at some point
ok ok ty !!