component is being set to null after edit

when things go weird like that i always try to delete the folders, generate again and build but that didnt help here…
how do you suggest avoiding this?

BTW thank you for helping:)