Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zip does not contain a valid manifest #553

Closed
ianustec opened this issue Jan 13, 2024 · 2 comments
Closed

zip does not contain a valid manifest #553

ianustec opened this issue Jan 13, 2024 · 2 comments
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@ianustec
Copy link

What information was incorrect, unhelpful, or incomplete?

Hi guys,

when i try to upload my extension, i receive the error "[...]zip does not contain a valid manifest"

Please help me. On Chrome it work.

{
  "manifest_version": 3,
  "name": "XXX",
  "version": "1.6",
  "description": "xXXX",
  "permissions": [
    "storage"
  ],
  "host_permissions": [
    "https://example.com/*"
  ],
  "action": {},
  "background": {
    "service_worker": "background.js"
  },
  "content_scripts": [
    {
      "matches": [
        "<all_urls>"
      ],
      "js": [
        "content.js",
        "library/prism/prism.js"
      ],
      "css": [
        "styles.css"
      ],
      "run_at": "document_end",
      "all_frames": true
    }
  ],
  "icons": {
    "16": "images/icon16.png",
    "48": "images/icon48.png",
    "128": "images/icon128.png"
  },
  "web_accessible_resources": [
    {
      "resources": [
        "images/*"
      ],
      "matches": [
        "<all_urls>"
      ]
    },
    {
      "resources": [
        "styles.css"
      ],
      "matches": [
        "<all_urls>"
      ]
    }
  ]
}

What did you expect to see?

extension loaded

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

@ianustec ianustec added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 13, 2024
Copy link

It looks like this is your first issue. Welcome! 👋 One of the project maintainers will be with you as soon as possible. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.

@rebloor
Copy link
Collaborator

rebloor commented Jan 15, 2024

@ianustec I suspect it's because Firefox doesn't support background.service_worker. Check out https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background, which includes information on how to use scripts in Firefox and service workers in Chrome.
If you have any further questions, please post them to the forum

@rebloor rebloor closed this as completed Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

2 participants