SeanMI
SeanMI
PD🧩 Plasmo Developers
Created by samson on 12/22/2023 in #🔰newbie
Receiving end does not exist.
Anyone have the latest 2024 solution to this? Error during analysis: Error: Could not establish connection. Receiving end does not exist. src/components/pageSelector.tsx This is a similar function to the ones above, where a button is clicked to trigger the contentScript. The only difference is I'm doing this from a different component and not the popup.tsx: try { const response = await sendToContentScript({ name: "analyzePage" }) src/contents/analyzePage.tsx const handler: PlasmoMessaging.MessageHandler = async (req, res) => { const {name} = req if (name === "analyzePage") { console.log("AnalyzePage message received, starting analysis.") const patientLabel = await analyzePage() console.log("patient label:", patientLabel) res.send({ patientLabel }) } } I just get the error 'receiving end does not exist', can anyone shed some light.
18 replies