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?
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).
Make sure you have the latest version of Chrome. Learn how to update Chrome. If you're using a work or school computer, your administrator might not let you install items from the Chrome Web Store. For more help, contact your administrator.
Go to the app or extension that you want to automatically install. Under Installation policy, choose Force install or Force install + pin. Click Save.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With