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

前端 未结 8 1583
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-05 01:44

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\":         


        
相关标签:
8条回答
  • 2021-02-05 01:56

    Mine also was funny. While copypasting " manifest.json" from the tutorial, i also managed to copy a leading space. Couldn't get why it's not finding it.

    0 讨论(0)
  • 2021-02-05 02:10

    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.

    0 讨论(0)
提交回复
热议问题