title: Service worker registration failed. Chrome extension
body: <p>I don't understand how to migrate from manifest v2 to v3 in part of Service Worker. Occurs error <code>Service worker registration failed</code></p>
  <pre class="lang-json prettyprint-override"><code>// manifest.json
  &quot;background&quot;: {
      &quot;service_worker&quot;: &quot;/script/background/background.js&quot;
  },
  </code></pre>
  <pre><code>// background.js
  chrome.runtime.onInstalled.addListener(onInstalled);
  </code></pre>
  <p><a href="https://i.stack.imgur.com/fo4kA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fo4kA.png" alt="enter image description here" /></a></p>