Currently, I am developing a browser extension for Microsoft Edge that requires me to inject a script into specific pages. Upon attempting to load the unpacked extension, Microsoft Edge displays an error stating, “Error Invalid value for 'web_accessible_resources[0]'.” Despite referencing the documentation and reviewing some examples, my configuration seems valid. To reproduce the error, below is a minimal working example:
manifest.json
{
"manifest_version": 3,
"name": "MWE",
"version": "0.0.0",
"web_accessible_resources": [{
"resources": ["script.js"],
"matches": ["<all_urls>"]
}]
}
script.js
<empty>
I am using Microsoft Edge Version 86.0.622.69 (Official build) (64-bit). How can I resolve this error when trying to use Manifest v3 instead of Manifest v2?