Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not establish connection. Receiving end does not exist. #2

Open
sesh92 opened this issue Sep 30, 2021 · 9 comments
Open

Could not establish connection. Receiving end does not exist. #2

sesh92 opened this issue Sep 30, 2021 · 9 comments

Comments

@sesh92
Copy link

sesh92 commented Sep 30, 2021

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

@faraazahmad
Copy link

Has anyone been able to resolve this?

@ZeroPie
Copy link

ZeroPie commented Mar 21, 2022

Tutorial and repo don't work @faraazahmad

@faraazahmad
Copy link

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

@ZeroPie
Copy link

ZeroPie commented Mar 21, 2022

@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

@bajcmartinez
Copy link
Owner

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

@lenniecottrell
Copy link

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
Copy link

@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

@mhlv
Copy link

mhlv commented Apr 10, 2022

Same issue wit me, MacOS, latest chrome

@AlanChen4
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants