Forum Discussion
Rohitkumar11
Aug 29, 2023Copper Contributor
Spfx error- TypeError: _brace2.default.acequire is not a function. Any guess why i am getting this?
- Aug 31, 2023can you try this..this should work --/lib/PropertyFieldPeoplePicker in import .
import {
IPropertyFieldGroupOrPerson,
PropertyFieldPeoplePicker,
PrincipalType
} from '@pnp/spfx-property-controls/lib/PropertyFieldPeoplePicker';
Rahul_Singh1992
Aug 31, 2023Copper Contributor
can you please share Import statement for @pnp/spfx-property-controls from your code ? I think issue might be there only
- Rohitkumar11Aug 31, 2023Copper Contributori have used this import {
IPropertyFieldGroupOrPerson,
PrincipalType,
PropertyFieldPeoplePicker,
} from "@pnp/spfx-property-controls- Rahul_Singh1992Aug 31, 2023Copper Contributorcan you try this..this should work --/lib/PropertyFieldPeoplePicker in import .
import {
IPropertyFieldGroupOrPerson,
PropertyFieldPeoplePicker,
PrincipalType
} from '@pnp/spfx-property-controls/lib/PropertyFieldPeoplePicker';- Rohitkumar11Aug 31, 2023Copper ContributorYes , It worked thanks a lot