Chrome extension warns “Cannot load extension with file or directory name Thumbs.db. The filename is illegal.”

后端 未结 4 776
深忆病人
深忆病人 2021-02-12 14:56

Whenever I use \"load unpacked\" to test my custom Chrome extension, I get an error:

There were warnings when trying to install this extension:

相关标签:
4条回答
  • 2021-02-12 15:20

    Open Windows 'Folder Options' and select the 'View' tab. Under 'Advanced Settings', select 'Show hidden files, folders, and drives' then select 'OK'.

    Doing this will show the Thumbs.db file inside the folder where you are keeping pictures/icons relevant to your extension. Delete it.

    To prevent creation of Thumbs.db again, I reckon, setting the folder type to 'General Items' should do the trick.

    0 讨论(0)
  • 2021-02-12 15:28

    To fix this enter the path:

    Control Panel\All Control Panel Items\File Explorer Options

    Click

    View

    In "advanced setting" Uncheck

    Hide protected operating system files (Recommended)

    And apply


    To Prevent this from occurring make sure in

    Properties (Customize)

    of that folder that

    Optimize this folder for:

    is

    "General Items"

    0 讨论(0)
  • 2021-02-12 15:30

    I have already face this problem and finaly i have solve it,when you load your extension folder to chrome then go to detail option and off the collect errors. you will never seen the error this is just like notice error it does not effect your extension. You can see the image for help

    0 讨论(0)
  • 2021-02-12 15:35

    As wOxxOm said, there is a thumbs.ds archive inside. If you are using Windows, a ds file can be understood as a protected operational system file. So everything you need to do is go to control panel -> folders options and unmark "hide protected operational system files" or something like this.

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