Share via

function not implemented inside my TypeScript

john john 1,031 Reputation points
2022-06-07T10:14:31.7+00:00

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

//

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. sadomovalex 3,636 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

    Was this answer helpful?

    0 comments No comments

Your answer

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