. Advertisement .
..3..
. Advertisement .
..4..
For my project, I’m using VueJS and Laravel. The error ”unchecked runtime.lasterror: the message port closed before a response was received.” has recently surfaced, and it can be found in older git branches as well.
Only the Chrome browser displays this problem.
I tried to fix it, but It doesn’t work and returns the result I want. Can you give me some advice?
The cause: I think this error has been thrown by Chrome in the case there is a conflict with another extension or when some of your generated extension’s
onMessage
listeners are expected to return a promise.The solution: To fix this problem, turn off all installed extensions in your Chrome browser first. Then reload the page to see whether the problem has been resolved.
And then one by one, enable the extensions, and keep verifying the page by refreshing after each one is enabled. If you’re not getting the error, it’s because the extension isn’t causing any issues. This way you will get to know the culprit and keep it off.