I am using sharepoint spfx extension listview commandset to add custom command in command bar to open a panel with form on that form I have people picker field for that I used pnp people picker before I used in spfx webpart it's working fine but in extensions it getting an error i.e. page context is not defined.
I referred this blog https://www.c-sharpcorner.com/article/pnp-people-picker-control-for-spfx/

thank you so much for your answer...