In my plugin I’m trying to find all component nodes so I can get their “key” property, however I am unable to access the “type” property of any of the nodes in my document so that I can filter out accordingly.
I have identified the id of one of the nodes I want to access and used
const node = figma.getNodeById(nodeId) to check its properties however the outputted Node object doesn’t seem to have any accessible properties other than id (example output:
Similarly, if I try
node.type on any node returned by
figma.currentPage.selection, it returns
undefined. The only property that works is
Could there be something wrong with how my project is set up or am I missing something in accessing a node’s properties?