Forum Discussion
Rohitkumar11
Aug 29, 2023Copper Contributor
Spfx error- TypeError: _brace2.default.acequire is not a function. Any guess why i am getting this?
- can you try this..this should work --/lib/PropertyFieldPeoplePicker in import .
import {
IPropertyFieldGroupOrPerson,
PropertyFieldPeoplePicker,
PrincipalType
} from '@pnp/spfx-property-controls/lib/PropertyFieldPeoplePicker';
- Rahul_Singh1992Copper Contributorcan you please share Import statement for @pnp/spfx-property-controls from your code ? I think issue might be there only
- Rohitkumar11Copper Contributori have used this import {
IPropertyFieldGroupOrPerson,
PrincipalType,
PropertyFieldPeoplePicker,
} from "@pnp/spfx-property-controls- Rahul_Singh1992Copper Contributorcan you try this..this should work --/lib/PropertyFieldPeoplePicker in import .
import {
IPropertyFieldGroupOrPerson,
PropertyFieldPeoplePicker,
PrincipalType
} from '@pnp/spfx-property-controls/lib/PropertyFieldPeoplePicker';
- Rob_ElliottBronze ContributorCould it have something to do with the mis-spelling of acquire?
- Rohitkumar11Copper Contributor
Rob_Elliott we cant change the spelling its a inbuilt function
Rohitkumar11 Check this if it helps: Uncaught TypeError: ace.acequire is not a function
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- Rohitkumar11Copper ContributorAlready check not working