Skip to main content
Question

getVariableCollectionByIdAsync returns error

  • May 2, 2024
  • 2 replies
  • 335 views

Hosam_Elshazly

I need help guys to figure out how to get variable collections from a published library.

I have created a few variables in a library file, and created a plugin to fetch these variable collections using a plugin in a different Figma file.

So, first I am getting variable collections & variables using REST API

Next, by iterating on the variable collections object here comes the problem

I keep getting error ““MemPool/Node: cannot dereference nullptr” in countError (FGMemPool.cpp)”

Keep in mind I used both id & subscribed_id but still doesn’t work

Any ideas about this error?

This topic has been closed for replies.

2 replies

Wes_Barichak
  • New Participant
  • 4 replies
  • October 1, 2024

@Hosam_Elshazly Did you ever figure this one out? I’m stuck on this same error, not really sure what I could be doing wrong.


Gleb
  • Power Member
  • 4716 replies
  • October 8, 2024

Try using this: figma.teamLibrary | Plugin API first, then check if variable collection exists via key. This error might be happening because the library variable collection is not enabled in the file. Just a theory.