Currently, I am developing an extension and using a template from a previous YouTube video that is based on manifest v2. However, I am implementing manifest v3 in my extension. Can anyone guide me on how to update this specific piece of code?
"background": {
"service_worker":
"popup.js",
"persistent": true
},
Upon testing the extension in Chrome, I encountered the following error:
Failed to load extension
File: ~/Chrome extenions /BackgroundChanger
Error: The "background.persistent" key cannot be used with manifest_version 3. Use the "background.service_worker" key instead.
Could not load manifest.
I assumed that manifest v2 and v3 would have some similarities but seems like there are significant differences.