chrome-react-seo-extension icon indicating copy to clipboard operation
chrome-react-seo-extension copied to clipboard

Could not establish connection. Receiving end does not exist.

Open sesh92 opened this issue 4 years ago • 9 comments

Two messages in inspector it looks like poor permissions in manifest Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist. index.html:1 Error handling response: TypeError: Cannot read properties of undefined (reading 'title') at chrome-extension://ifcfhbddddobmpgimkjjehbbdcbbefnk/static/js/main.js:1:2809

sesh92 avatar Sep 30 '21 23:09 sesh92

Has anyone been able to resolve this?

faraazahmad avatar Jan 15 '22 14:01 faraazahmad

Tutorial and repo don't work @faraazahmad

ZeroPie avatar Mar 21 '22 20:03 ZeroPie

@ZeroPie I'd reached out to @bajcmartinez on Twitter and he was looking into the issue

faraazahmad avatar Mar 21 '22 20:03 faraazahmad

@faraazahmad While the article was very informative, wasting time on broken examples is not cool:

Maybe give this a chance, it has also hot reloading for the extension out of the box. https://github.com/lxieyang/chrome-extension-boilerplate-react

ZeroPie avatar Mar 21 '22 21:03 ZeroPie

Hi all, sorry for the late response, I have been having some trouble reproducing the error, and I got also messages from other people that all works as expected. Could you please share some additional information, like browser and OS?

I've tried on both Linux and MacOS, using the latest version of Google Chrome without issues.

Thanks

jcmartinezdev avatar Mar 30 '22 22:03 jcmartinezdev

The extension works fine for me on fresh pages - any tabs that were already open throw the error, but if the tabs are refreshed or new tabs are opened then it works fine.

Based on this thread I believe the issue here is just that the content script (DOMEvaluator.ts) isn't available on a stale tab, so the background process can't communicate with the content script.

lenniecottrell avatar Apr 06 '22 01:04 lenniecottrell

@bajcmartinez this is a great little tutorial, but could definitely use a couple of updates for clarity! I am brand new to TS and didn't know I needed a types folder with .ts files in it, and I needed to downgrade react-scripts to 4.0.3 to get craco to work - it doesn't work with react-scripts 5.0

lenniecottrell avatar Apr 06 '22 01:04 lenniecottrell

Same issue wit me, MacOS, latest chrome

mhlv avatar Apr 10 '22 21:04 mhlv

I (Windows 10, Microsoft Edge) was able to fix this error doing the following:

  • Going to extensions and disabling each extension one by one
  • Restarting the browser
  • Try the extension on a fresh tab, as suggested by @lenniecottrell

AlanChen4 avatar May 17 '23 15:05 AlanChen4