SOLVED

Spfx error- TypeError: _brace2.default.acequire is not a function. Any guess why i am getting this?

8 Replies
Could it have something to do with the mis-spelling of acquire?

@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.

can you please share Import statement for @pnp/spfx-property-controls from your code ? I think issue might be there only
i have used this import {
IPropertyFieldGroupOrPerson,
PrincipalType,
PropertyFieldPeoplePicker,
} from "@pnp/spfx-property-controls
best response confirmed by Rohitkumar11 (Copper Contributor)
Solution
can you try this..this should work --/lib/PropertyFieldPeoplePicker in import .

import {
IPropertyFieldGroupOrPerson,
PropertyFieldPeoplePicker,
PrincipalType
} from '@pnp/spfx-property-controls/lib/PropertyFieldPeoplePicker';