Error - Cannot read properties of undefined (reading 'id') while adding custom file picker property to custom webpart

Anonymous
2024-03-12T18:29:12+00:00

I am getting following error , while adding the file picker property to my Custom webpart.

First time I am creating custom webpart with file picker property so I get some reference from this site - PropertyFieldFilePicker - @pnp/spfx-property-controls. I did exactly same this which is in that article and getting the error.

Could anyone please help me to find out where I make some mistake? here I also share some code for reference.

anyone help will be appreciated.

code for reference

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-03-12T18:53:31+00:00

    Dear,

    Good morning!

    Thanks for posting in the Microsoft Community. We're happy to help. We're looking into your situation and will update you soon.

    Appreciate their patience and understanding and thank them for their time and cooperation.

    Sincerely

    Waqas Muhammad

    0 comments No comments
  2. Anonymous
    2024-03-13T07:22:03+00:00

    Dear Kem,

    Good day!!

    I understand your concern but since it’s related to custom webpart with File Picker Property, I would like to suggest you post your concern in the related community i.e., Issues · pnp/sp-dev-fx-property-controls · GitHub to get the detailed help from the experts.

    In addition, I would also like to suggest you cross-post your concern in the related community i.e., Ask a question - Microsoft Q&A with SharePoint Development tag to get the detailed help from the experts.

    Apologies for redirecting you to different community as the members in the category posted focus on the users with out of the box concerns on SharePoint Online, and have limited knowledge on the custom webpart and development related scenarios; so to get the fast and better assistance, we have redirected you in the correct path.

    Appreciate your patience and understanding. Have a great day!!

    Best Regards,

    Sophia

    0 comments No comments
  3. Anonymous
    2024-03-13T14:42:03+00:00

    Hi Sophia,

    Thank you so much for your reply. I will definitely post my question to Microsoft Q & A. I will also check the GitHub link that you provided.

    Appreciate your time to reply me. Have a good day!!

    Cheers,

    Kem

    0 comments No comments