-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read properties of undefined (reading 'User') to set PeoplePicker principalTypes #1235
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
Thanks @yungfu - replacing the import statements worked for me. |
Partial fix to the issue described here - see pnp#1235
I've tested out with the latest SPFx (1.15) and PnPJS - all look good. |
@AJIXuMuK - Add a
In my project, I import |
I get the same error when trying to upgrade to any version I tried <3.10.0 from my current 3.4.1 with both SPFx 1.14.0 and SPFx 1.15.2. Changing the import statement as mentioned by the op helps for me too. Unfortunately 3.10.0 has another issue, as described in #1292 |
Hi @yungfu, Since you've raised the issue, do you still have trouble and if it does, did you have the chance to retry with recent versions (>=3.10)? |
I cannot reproduce this issue on 3.15. seems it has been fixed. |
Category
[ ] Enhancement
[ ] Bug
[x] Question
Version
Please specify what version of the library you are using: [ 3.7 & 3.8.0 ]
Expected / Desired Behavior / Question
PeoplePicker always get
But if I change the import statement to
import {PeoplePicker, PrincipalType} from "@pnp/spfx-controls-react/lib/controls/peoplepicker";
The PeoplePicker rendered successfully.
The spfx version is 1.14, the pnp/sp version is 3.4.1, I also installed "rush-stack-compiler-4.2"(This is required by pnpjs v3).
I am working on SharePoint Online with a mac mini.
I had make a similar demo with pnpjs v2 and rush-stack-compiler-3.9, the PeoplePicker worked well. But I cannot make sure this is caused by rush-stack-compiler.
So whether this is compatible with pnpjs v3, or I have missed something?
Thanks!
The text was updated successfully, but these errors were encountered: