Chrome extension installation error message

I built a small Chrome extension - it shows your IP and geolocation information. I tested it several times, packed it (using Grunt), and uploaded it to the Chrome Web Store. I checked several times that the resulting zip file contains all the files needed by the application + manifest.

Then I uninstalled my local version and tried to install it from the online store. I keep getting this error, even after updating, and restart the browser several times:

"Failed to add this item to Chrome. Please refresh and try again."

enter image description here

How do I debug / solve this problem?

  • The code for my extension is very simple and actually open on GitHub .
  • The manifest file is available here .
  • The extension is available in the Chrome store here .

Update :

Looking at the JS console, I see an error every time I press the install button:

webstorePrivate.beginInstallWithManifest3: invalid manifest

There is no additional information, and for me the manifest file looks fine (and it works when loading locally).

+5
source share
4 answers

Well, it took some time, but I found the culprit and fixed it. I used Yeoman and Generator-Chrome-Extension to download the extension. One of the tasks in Gruntfile.js reads as follows:

grunt.registerTask('manifest', function() {
        var manifest = grunt.file.readJSON(yeomanConfig.app + '/manifest.json');
        //manifest.background.scripts = ['scripts/background.js'];
        grunt.file.write(yeomanConfig.dist + '/manifest.json', JSON.stringify(manifest, null, 2));
    });

() , background.js script EVEN, . , , , page, .

- , . , .

+3

. :

"app": {
    "urls": [
    ],

Manifest.json . , .

+2

, .

-, .

+1

All Articles