chrome 扩展错误:Service Worker 注册失败

问题描述

您好,我目前正在为某个网站的轮盘赌 autobetter 进行扩展。当我加载我的扩展程序时,浏览器在我指定脚本文件所在的行中识别出错误“服务工作者注册失败”。 screenshot from browser

这是 manifest.json 代码

{
    "name": "CSGO500 Roullete Autobetter","description": "This is a csgo500 roullete strategy autobetter","version": "1.0","manifest_version": 3,"icons": {
        "16": "/icon.jpg","32": "/icon.jpg","48": "/icon.jpg","128": "/icon.jpg"

    },"background":{
        "service_worker": "background.js" //error here 

    },"action":{
        "default_popup": "popup.html","default_icons":{
            "16": "/icon.jpg","128": "/icon.jpg"
        }
    },"permissions":[
        "activeTab","tabs","storage","scripting"
    ],"host_permissions":[
        "https://csgo500.com/roulette"
    ]
    

}
这里的答案没有帮助: Service worker registration failed. Chrome extension

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)