I'm using VueJS and Laravel for my project. This issue started to show lately and it shows even in the old git branches.
This error only shows in Chrome browser.
I'm using VueJS and Laravel for my project. This issue started to show lately and it shows even in the old git branches.
This error only shows in Chrome browser.
Disable if there is any anti-virus extension is installed on the browser. In my case, the anti-virus extension was the culprit.
Post is rather old and not closely related to Chrome extensions development, but let it be here.
I had same problem when responding on message in callback. The solution is to return true in background message listener.
Here is simple example of background.js. It responses to any message from popup.js.
Here is popup.js, which sends message on popup. You'll get exceptions until you un-comment "return true" line in background.js file.
manifest.json, just in case :) Pay attention on alarm permissions section!
If you go to chrome://extensions/, you can just toggle each extension one at a time and see which one is actually triggering the issue.
Once you toggle the extension off, refresh the page where you are seeing the error and wiggle the mouse around, or click. Mouse actions are the things that are throwing errors.
So I was able to pinpoint which extension was actually causing the issue and disable it.
For me it was
Auto Tab Discard
, which throws that error on pinned tabs. I created a bug report, https://github.com/rNeomy/auto-tab-discard/issues/101.For those coming here to debug this error in Chrome 73, one possibility is because Chrome 73 onwards disallows cross-origin requests in content scripts.
More reading:
This affects many Chrome extension authors, who now need to scramble to fix the extensions because Chrome thinks "Our data shows that most extensions will not be affected by this change."
(it has nothing to do with your app code)
UPDATE: I fixed the CORs issue but I still see this error. I suspect it is Chrome's fault here.
I disabled all installed extensions in Chrome - works for me. I have now clear console without errors.