function not implemented inside my TypeScript

john john 961 Reputation points
2022-06-07T10:14:31.7+00:00

I have the following TypeScript file inside our SharePoint sPFx:-

//

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,740 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,952 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. sadomovalex 3,631 Reputation points
    2022-06-07T14:24:34.903+00:00

    it looks like it fails on this line:

    const placeholders = [...this.state.uploadPlaceholders];
    

    check whether this.state.uploadPlaceholders is array (try to output console.log(JSON.stringify(this.state.uploadPlaceholders))) or try to replace it by simpler expression without 3 dots notation

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.