sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Error with RecentDocumentsWebpart

Open cassandradanger opened this issue 8 years ago • 2 comments

getting the error: Error - [tsc] src/webparts/recentDocuments/RecentDocumentsWebPart.ts(81,7): error TS2345: Argument of type 'typeof RecentDocuments' is not assignable to parameter of type 'string | ComponentClass<IRecentDocumentsProps> | StatelessComponent<IRecentDocumentsProps>'.

I'm new to React and Sharepoint, so I'm having a tough time figuring this out. Any thoughts?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

cassandradanger avatar Dec 01 '18 18:12 cassandradanger

Modify RecentDocuments tsx file: s React.Component<IRecentDocumentsProps, void>=》s React.Component<IRecentDocumentsProps, any>

Seiyasu avatar Dec 03 '18 04:12 Seiyasu

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 26 '20 00:01 msft-github-bot