In my child component:

I tried to make a rest call from spfx web part to get people results, but it throws errors.


Error: can't read property get of undefined

I believe it's something related to context of web part or padata protocol rules. But I passed down the context from parent component to child.

Thanks in advance.

1 Answer 1


I created a helloword webpart and could pass the context to the react component like below:

enter image description here

enter image description here

Can you have a check if the passed context is correct, if it does not work, can you share your project?


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.