Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome says my extension's manifest file is missing or unreadable

I'm a new chrome extension developer, and I was going through the Chrome tutorial on making a "Hello World" extension, here's my code:

     {       "name": "My First Extension",       "version": "1.0",       "manifest_version": 2,       "description": "The first extension that I made.",       "browser_action": {        "default_icon": "icon.png"       },        "permissions": [        "http://api.flickr.com/"       ]       } 

When I went to load the unpacked extension it said the manifest file was missing or unreadable. Yes I have the image in a folder with it and it is correctly named manifest.json

like image 270
user1689242 Avatar asked Sep 21 '12 15:09

user1689242


People also ask

How do I fix Google Chrome failed to load extension?

In the task manager, locate the extension and tap End Process. This will disable the extension from the browser. Now, go to More Tools > Extensions and give the extension a fresh start by tapping on Reload. Even after the fixes above, if the extension doesn't load correctly, uninstall it and reinstall it.

How do I fix manifest load error?

The first thing to test is clearing the cache of your browser and restarting your browser, this will normally fix the issue.

What is manifest file in Chrome?

The web app manifest is a JSON file that tells the browser about your Progressive Web App and how it should behave when installed on the user's desktop or mobile device.


1 Answers

Something that commonly happens is that the manifest file isn't named properly. Double check the name (and extension) and be sure that it doesn't end with .txt (for example).

In order to determine this, make sure you aren't hiding file extensions:

  1. Open Windows Explorer
  2. Go to Folder and Search Options > View tab
  3. Uncheck Hide extensions for known file types

Also, note that the naming of the manifest file is, in fact, case sensitive, i.e. manifest.json != MANIFEST.JSON.

like image 99
Jeremy Avatar answered Oct 15 '22 17:10

Jeremy