0

I've recently built a script extension for Chrome using Manifest Version 3, and it's been working smoothly. Now, I'm attempting to create a Firefox version of the same extension. To do this, I'm using the web-ext tool, specifically version 7.6.2.

However, during the process of running the command $ web-ext lint, I encountered a critical error:

Code Message Description File
EXTENSION_ID_REQUIRED The extension ID is required in Manifest Version 3 and above. See this link for more information. manifest.json

I've tried to find examples of manifest.json files that utilize Manifest Version 3 on the official MDN GitHub repository. However, it appears that the majority of the provided examples are based on Manifest Version 2

One specific point that's not entirely clear to me is whether the ID for the Firefox extension is generated automatically by the platform or if I need to provide my email address as the ID.

salsan
  • 439
  • 1
  • 6
  • 18
  • 1
    The "this link" in the error says you need to add [browser_specific_settings](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings) to manifest.json. – wOxxOm Aug 17 '23 at 16:55
  • @wOxxOm Well, I require a distinct email for each extension I create, and then convert them all into GUID format. Is it not achievable with web-ext? Because the extension key for Chrome is automatically generated by Chrome – salsan Aug 17 '23 at 17:20
  • 2
    The link describes the only possible solution. Their documentation for extensions is usually up-to-date. – wOxxOm Aug 17 '23 at 18:39

0 Answers0