Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

429
Vistas
When making chrome extension, I keep getting this error: Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist

When making a chrome extension, I keep getting this error

Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.

Along with

background.js:0 (anonymous function)

Does anyone know how I could resolve this? I literally have like 3 lines in both my files.

This is my background.js file

chrome.tabs.onUpdated.addListener((tabId, tab) => {
  if (tab.url && tab.url.includes("linkedin.com/in")) {
    chrome.tabs.sendMessage(tabId, {type: "MAIN", profile: "test"});
  }
});

and This is my ContentScript.js file

(() => {
    chrome.runtime.onMessage.addListener((obj, sender, response) => {
        //const { type, profile } = obj;
        response = {line1 : "hello"}
    });
})();

Any help would grealy be appreciated :)

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda