Figma Support Forum

Need a way to find Missing Library components/styles

The plugin Style Organizer helped me find my missing color styles. I think it also handles text styles, but not effect styles, so wouldn’t help locate those.

I did still have to use it on each individual page in my library to find the culprits.

I’ll have to check that one out. Thanks!

Hey Figma, could someone please advise on this? Seems like it’s a problem for many people.

2 Likes

Thanks for bringing this up. At the very least, let me convert instances with missing masters to masters within my file. Or let me bulk unlink from lost masters.

1 Like

I believe a moderator @Gleb has this post already, and guessing he’s probably passed the feedback on? If not, just share this post with people and have them Vote. :wink:

1 Like

I have the same issue, and as I am working in our master UI kit file, I cannot delete all the pages to clear the “missing library” styles. Are you suggesting searching for the “missing” style names in the Figma file I am working in? I think I am missing the purpose of the “missing library” feature, if there isn’t a simple way to check a style and delete it.

I tried to swap in any number of other libraries to no avail.Screen Shot 2021-08-30 at 6.06.22 PM

1 Like

Same issue here, when opening the list of ‘used styles’ I cannot select any of the checkboxes, let alone delete the items. Also, after selecting another library in the right column, doesn’t change anything.

I’m also pretty sure that they aren’t actually ‘used styles’. Or at least that shouldn’t be the case.

Pretty annoying nonetheless! :grinning_face_with_smiling_eyes:

10 Likes

I have the same issue as @SjoerdT. I have “None Found” for a match and I cannot find any of the components that are listed that say are missing. So I have no way to tell Figma to just remove these missing things.

5 Likes

I don’t work for Figma. Figma team checks the feedback threads on the forum occasionally.

For anyone having an issue with “ghost” styles and components, especially styles that you can’t find, check this thread:

2 Likes

Oh cool thanks. The main thing still is we wanna replace those rogue items, not just ignore them.

And yeah I know you didn’t work for Figma, but thought you were helping moderate these forums. :sweat_smile: Sorry!

1 Like

Same issue. Cannot find any of the ‘missing’ styles. I’ve checked everything: hidden layers, unions and subtracts, I’ve managed to reduce the number of the the ghosts, but still have some, and it drives me crazy.

I am also getting some cases where a match is found. Yet when I click Swap library the old style persists.

What’s interesting for me, is my missing library has similar names of styles or components (not exact) to my active/current library. Yet it won’t let me swap them (the option is disabled.) :disappointed:

This is a hack, but I was having a ton of trouble finding some rogue styles that were missing. They didn’t show up with any plugins. I was able to find them by running:

figma.currentPage.findAll(n => {
    var style = figma.getStyleById(n.effectStyleId);
    if (style) {
        console.log(style.name)
        if (style.name === "[ style name you're looking for]") {
            figma.currentPage.selection = [n];
        }
    }
})

in console on each page. As long as you know the style name you should be able to find the layers this way.

You can do this with text styles, fill styles, effect styles, etc

2 Likes

Oh, cool! I will definitely try this out. Always fun to fiddle with the console (when you know how :grinning_face_with_smiling_eyes: )

Update: @Pete_Lada I tried it out but appears to get no results? This is what I see:
image

for this:

image

Are you sure its an effect style? Like is this a fill style (color?)

Oh!! :thinking: Good question. Maybe what I’m seeing (in the screenshot above) is actually an Effect style? Is that what you’re asking?

If it is an Effect, can I change the code snippet to find effects instead of fills?

The snippet you linked is specifically looking for effect style names. You can change that bit to fillStyleId or textStyleId to find the names of those style types instead

1 Like

Ohhhh! I see what you mean, thanks for pointing that out. Appreciate it.

As a workaround, Style Organiser helps to locate linked styles on the board. This is particularly good if your Library is made of local components, as remote styles are highlighted.

The plugin is Style Organiser (by SHOPEE SINGAPORE PRIVATE LIMITED)