buildspace / gpt3-writer-extension-starter

60 stars 446 forks source link

chrome.runtime.onMessage.addListener seems not listening on the message we send. #3

Open nggih opened 1 year ago

nggih commented 1 year ago

Hi, I am stuck at Injecting into the Calmly webpage. I have followed the https://buildspace.so/p/build-ai-writing-assistant-gpt3/lessons/inject-into-a-webpage and final repo, but the error below still occur and the result from API can't be injected on the Calmly. Any help would be appreciated. Thank you.

Chrome version: Version 108.0.5359.99 (Official Build) (64-bit)

image Unchecked runtime.lastError: Cannot create item with duplicate id context-run Error handling response: TypeError: Cannot read properties of undefined (reading 'status') at chrome-extension://fmhgmgocffondhgalcpcllfaggcllhko/scripts/contextMenuServiceWorker.js:21:22 Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist. Error handling response: TypeError: Cannot read properties of undefined (reading 'id') at chrome-extension://fmhgmgocffondhgalcpcllfaggcllhko/scripts/contextMenuServiceWorker.js:15:31

benthecoder commented 1 year ago

faced the same thing, did you find a fix @nggih ?