Skip to main content
jonathan_Edwards
April 5, 2023
Solved

ComponentNode documentationLinks empty when it exists in inspect tab

  • April 5, 2023
  • 2 replies
  • 382 views

In my plugin I get the main component from a instance, and from the main component I read the documentationLinks, but for some some reason it is empty, even though when I click on the inspect tab for the instance it has the “View documentation” button which takes you to the correct documentation.

Does this happen because the component comes from a external component library?

// prints []
console.log(instance.mainComponent?.documentationLinks)
This topic has been closed for replies.
Best answer by tank666

Probably, the link to the component documentation was added not to the ComponentNode, but to the ComponentSetNode. Try checking the parent of this ComponentNode.

2 replies

tank666
tank666Solution
April 5, 2023

Probably, the link to the component documentation was added not to the ComponentNode, but to the ComponentSetNode. Try checking the parent of this ComponentNode.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
jonathan_Edwards
April 5, 2023

Thank you, that worked ☺️