it was happening to me too. Just see @mirko-santangelo tip and it worked for me
I didn't know about that. And it is a bit tricky, because Figma automatically rename the text layer to it's content when you create, so must rename the layer manually to be able to keep text content
This, after already have created a lot of components, certainly is a time consumer (at least)