添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
痴情的铁链  ·  科研实习 | ...·  10 月前    · 
聪明的花生  ·  想要让你的SQL ...·  1 年前    · 
才高八斗的哑铃  ·  【Docker学习笔记 ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

When trying to install a chrome extension using manifest_version 3, I am unable to install as I keep getting the error:

The "background.scripts" key cannot be used with manifest_version 3. Use the "background.service_worker" key instead

The "background.persistent" key cannot be used with manifest_version 3. Use the "background.service_worker" key instead.

Manifest V3 no longer supports background pages. Instead it now supports a new feature called service workers.

The key background in your manifest.json can no longer contain the field persistent , and also update the value from scripts to service_worker . Service worker cannot contain an array but can only contain a single string value.

"name": "Test", "description" : "Test Chrome Extension", "version": "1.0", "manifest_version": 3, "background": { "service_worker": "background.js"

Ref: Manifest V3 Migration Checklist

@orschiro Multiple background 'scripts' don't exist in v3. There can only be a single 'service_worker'. developer.chrome.com/docs/extensions/mv3/… KJ Sudarshan Aug 21, 2021 at 10:57

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .