I think the problem is calling the setPopover directly after definition. The definition of your controls should be inside the init method of your PCF.
Hope this helps!
Kind regards, Diana ---------- Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."