Figma Support Forum

Error for "Nested instance is swapped with parent instance"

Hello,
I’m trying to create an interactive component for checkboxes. In my design system file, I have wired up the checkbox variant already. Then I opened up a new file and dropped in this component. When I play my prototype, however, I get the following error message: “Couldn’t play interaction: nested instance is swapped with parent instance.”

What does this mean? I’m not sure the component has a parent instance.

2 Likes

@Amy_Zhen I was having the same issue. In my case, there was a duplicated instance inside the “Hover” variant.
Screenshot 2021-04-23 at 11.47.50|542x256
I deleted that variant and created a new one, and it works fine now! I hope it helps :slightly_smiling_face:

1 Like

I figured out my issue too. One of the checkbox variants had an additional nested grouping than the others. I had to delete the variant and create a new one for checkboxes. Now I have to go through the full design library and swap out the old with the new!