I don't understand how to migrate from manifest v2 to v3 in part of Service Worker. Occurs error `Service worker registration failed`

```json
// manifest.json
"background": {
    "service_worker": "/script/background/background.js"
},

```

```
// background.js
chrome.runtime.onInstalled.addListener(onInstalled);

```

[![enter image description here](https://i.stack.imgur.com/fo4kA.png)](https://i.stack.imgur.com/fo4kA.png)