Cannot find name 'IItemAddResult'.ts(2304)

developer sp1 461 Reputation points
2020-11-09T02:39:42.697+00:00

In SPFX Solution, I want to create new item,but found Cannot find name 'IItemAddResult'.ts(2304):

38167-snipaste-2020-11-09-10-37-33.png

Is there something I'm missing ?

Thanks for any help

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,619 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jerryzy 10,571 Reputation points
    2020-11-09T07:32:30.25+00:00

    Hi @developer sp1 ,

    Try to import ItmeAddResult like this in the beginning:

    import { IItemAddResult } from "@pnp/sp/items";


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.