Open hoangvu12 opened 1 year ago
I also have this problem.
Can you try not importing asynchronously? It might have something to do with that
@songpengyuan Can you also share your setup?
Can you try not importing asynchronously? It might have something to do with that
@songpengyuan Can you also share your setup?
I can't import webext-bridge without import another file asynchronously.
@hoangvu12 Hello, have you resolved this issue?
@hoangvu12 Hello, have you resolved this issue?
@hoangvu12 Hello, have you resolved this issue?
I ended up writing my own messaging bridge 😔
It looks like I found the reason. I need to use a message in the background script, even if it's just a dummy message.
Hmm, I put a message in my background script as well, but it didn't solve the issue. Looks like I'm off to do https://github.com/serversideup/webext-bridge/issues/67#issuecomment-2268541565. :)
I'm trying to post message from web to content scripts, but for some reason it keeps showing error
Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
Here is my content script (index.ts):
content.ts:
I have no idea why it causes that, it just happens whenever I call the
allowWindowMessaging
function.