Skip to main content
Question

ComponentNode.findAllWithCriteria failing to find nodes

  • January 22, 2026
  • 0 replies
  • 6 views

Edmund_Gauci

I have a plugin that iterates over a ComponentNodeSet. Here’s a short snippet:

    const item = componentSetNode.children[ix] as ComponentNode;

    const textNodes = item.findAllWithCriteria({ types: ["TEXT"] });

 

This worked until a few months ago, but now it is returning an array of zero length. I checked that the ComponentNode has the correct name, and it has several descendant TextNodes.

 

This process has been very slow in the past, but now it just stopped working. So far I haven’t had any luck trying to figure out what’s wrong. Nothing’s changed in the code.