`Manifest file is invalid` when installing my chrome extension?

17,381

Solution 1

I finally fixed this problem, it's just because my develop folder's path contains Chinese characters, moved it to a English path can solve this.

Solution 2

I got this error too when I updated my extension. I think it happens sometimes when your extension is propagating to various servers. I came and looked at this thread and then went back to the store and tried again and it was fine.

Solution 3

I had the same problem. The zip-file was accepted in the developer dashboard, but I got an error message saying that my manifest-file was invalid when installing from the webstore.

No Chineese characters on my end, it seemed like the problem was with character encoding.

I saved the manifest.json-file as ANSI - not UTF8 - and the package was accepted by the chrome webstore.

Solution 4

For anyone having issues with this

To find the error in the manifest file I did the following:

  1. went into the new developer dashboard
  2. clicked on the "package" section where you can upload a new package
  3. clicked the CRX File main.crx download link for the Published package.

The site then gives a path for the error in an error message in the top of the page.

My error was in the exclude_matches list, i had an excluded path with invalid match syntax. The index in the exclude_matches part of the error message showed which entry that had errors (exclud_matches[1], 0-indexed, so second entry had an error).

Share:
17,381
Aloong
Author by

Aloong

This man's heart is a stack.

Updated on June 27, 2022

Comments

  • Aloong
    Aloong almost 2 years

    This is my manifest.json

    {
    
      "name": "Environment Quick Switch",
    
      "version": "1.0",
    
      "description": "Quick switch around develop environments.",
    
      "browser_action": {
    
        "default_icon": "icon.png",
        "popup": "action.html"
    
      },
    
      "permissions": [
    
        "tabs", "http://*/*", "https://*/*"
    
      ]
    
    }

    I load it's folder in develop mode is OK, but after I packaged it and try to install the .crx file, comes the Manifest file is invalid problem .

    Is anyone knows how to deal with this?