Attaching one component to another crash: 'template mismatch during attachment'

You didnt give any information about root component.