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

前端 未结 8 1619
佛祖请我去吃肉
佛祖请我去吃肉 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:45

    My problem was slightly different.

    By default Eclipse saved my manifest.json as an ANSI encoded text file.

    Solution:

    • Open in Notepad
    • File -> Save As
    • select UTF-8 from the encoding drop-down in the bottom left.
    • Save
    0 讨论(0)
  • 2021-02-05 01:45

    Kindly check whether you have installed right version of ChromeDriver or not . In my case , installing correct version helped.

    0 讨论(0)
  • 2021-02-05 01:48

    In my case it was the problem of building the extension, I was pointing at an extension src (with manifest and everything) but without a build.

    If you run into this scenario run npm i then npm build

    0 讨论(0)
  • 2021-02-05 01:49

    I also encountered this issue.

    My problem was that I renamed the folder my extension was in, so all I had to do was delete and reload the extension.

    Thought this might help some people out there.

    0 讨论(0)
  • 2021-02-05 01:51

    Some permissions issue for default sample.

    I wanted to see how it works, I am creating the first extension, so I downloaded a simpler one.

    Downloaded 'Typed URL History' sample from
    https://developer.chrome.com/extensions/examples/api/history/showHistory.zip

    which can be found at
    https://developer.chrome.com/extensions/samples

    this worked great, hope it helps

    0 讨论(0)
  • 2021-02-05 01:52

    If you are downloading samples from developer.chrome.com its possible that your actual folder is contained in a folder with the same name and this is creating a problem. For example your extracted sample extension named tabCapture will lool like this:

    C:\Users\...\tabCapture\tabCapture
    
    0 讨论(0)
提交回复
热议问题