For SPFx running gulp serve getting below error. For this line it was working before:

public render(): void {
    const element: React.ReactElement<IReactGetitemsProps > = React.createElement(
            description: escape(this.properties.description), 
            siteurl: escape(this.context.pageContext.web.absoluteUrl)

1 Answer 1


This error is because you are missing one property in IReactGetitemsProps.ts file. I am guessing you are missing siteurl property in your file.

It should be something like:

export interface IReactGetitemsProps {
   description: string;
   siteurl: string;
  • its there its working till yesterday
    – kumar
    Sep 25, 2019 at 4:59
  • it working now thank you for the help
    – kumar
    Sep 25, 2019 at 5:06
  • Welcome. Glad it worked for you :) Sep 25, 2019 at 5:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.