简体   繁体   中英

Chrome extension installation error message

I built a small Chrome extension - it shows your IP and geolocation information. I tested it several times, packaged it (using Grunt) and uploaded to the Chrome web store. I verified several time that the resulting zip file contains all the files needed by the app + the manifest.

I then removed my local version, and tried installing from the web store. I keep getting this error, even after refreshing, and restarting the browser several times:

"There was a problem adding this item to Chrome. Please refresh the page and try again."

在此输入图像描述

How do I debug/solve this problem?

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

Update :

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

webstorePrivate.beginInstallWithManifest3: Invalid manifest

No further information, and to me the manifest file looks ok (and it works when loaded locally).

Ok, took a while, but I found the culprit and fixed it. I used Yeoman and Generator-Chrome-Extension to bootstrap the extension. One of the tasks in the Gruntfile.js reads like this:

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));
    });

As you can see on the third (commented) line, the task injects a background.js script EVEN if you do not need it. Furthermore if you, like me, use a background page , this renders the manifest invalid.

For some reason, it will work locally, just not from the store. Once I commented that line, the manifest is valid, and the extension available.

I had the same problem. I removed:

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

From the Manifest.json file and it works. Hope this helps.

I had the same problem and I logging in with a proxy and the problem fixed.

Try a proxy as i guess.

Please try logging out/signing out of the Web Store and signing back in.

source: https://productforums.google.com/forum/#!topic/chrome/vFBudQDy5UE

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM