# Swap In v2 not working

**URL:** <https://community.penpot.app/t/swap-in-v2-not-working/5268>\
**Category:** Ask the community\
**Created:** [April 29, 2024, 9:03am UTC](https://community.penpot.app/t/swap-in-v2-not-working/5268 "2024-04-29T09:03:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iyadh](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/iyadh/32/4891_2.png) [@iyadh](https://community.penpot.app/u/iyadh)\
**Post date:** [April 29, 2024, 9:03am UTC](https://community.penpot.app/t/swap-in-v2-not-working/5268/1 "2024-04-29T09:03:13Z")

</div>

Hi,  
I’m self-hosting Penpot v2, and was playing around with the new components system. I just realized that I can’t:

- have an instance of component
- swap between states  
Here is a video showing the issue on dropbox: [Dropbox - penpot-components.mp4 - Simplify your life](https://www.dropbox.com/scl/fi/8tpsjztynnwb6f5247fjr/penpot-components.mp4?rlkey=mnnz3fqbjhtp4sid7dgqz3clj&dl=0)

thanks in advance.

---

<div class="post-metadata">

**Author:** ![iyadh](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/iyadh/32/4891_2.png) [@iyadh](https://community.penpot.app/u/iyadh)\
**Post date:** [April 29, 2024, 2:21pm UTC](https://community.penpot.app/t/swap-in-v2-not-working/5268/2 "2024-04-29T14:21:44Z")

</div>

For those who still have the same issue, it’s related to migration toward components-v2. Solution here:

> <https://github.com/penpot/penpot/issues/4443#issuecomment-2058237862>
>
> \### Steps To Reproduce
> 
> 1. Go to assets
> 2. Drag component on to the canvas
> 3. …Try swap the component
> 
> \### Expected behavior
> 
> I expect that a "copy" instance is created when dragging a component asset to the canvas so I can swap the component.
> 
> \### Actual behavior
> 
> It's not a copy instance created, as shown in the tutorial video, instead it's create another main asset
> 
> \### Screenshots or video
> 
> 
> https://github.com/penpot/penpot/assets/133744515/ee14a00c-23f5-46f8-a59f-dded04e751e7
> 
> 
> 
> \### Desktop (please complete the following information)
> 
> \_No response\_
> 
> \### Smartphone (please complete the following information)
> 
> \_No response\_
> 
> \### Environment (please complete the following information)
> 
> \_No response\_
> 
> \### Frontend Stack Trace
> 
> \_No response\_
> 
> \### Backend Stack Trace
> 
> \_No response\_
> 
> \### Additional context
> 
> This problem only occurred with the self-hosted version (tested on two instances).
