0

I need help with manifest migration from version 2 to 3.

I have changed the manifest.json, also tried the so many suggested solutions seen in many platform like wrapping up in js file with try/catch using importScripts(),etc.

But nothing worked out. Please help me to fix this

manifest.json:

  "background":{
    "service_worker":"background-wrapper.js",
    "type":"module"
  },

backgroud-wrapper.js:

import './background.js';
// importScripts("background.js");

// try {
//     importScripts("background.js");
// } catch (e) {
//     console.error(e);
// }

background.js

actual background script
have many functionality for the extension
Kaiido
  • 103,356
  • 8
  • 183
  • 231
Beginner
  • 93
  • 6
  • Remove `, "type":"module"`, remove `import './background.js'`, uncomment all code after `//` – wOxxOm Jul 23 '21 at 18:01

0 Answers0