Forum Discussion

Rohitkumar11's avatar
Rohitkumar11
Copper Contributor
Aug 29, 2023

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

:smile:

  • can you try this..this should work --/lib/PropertyFieldPeoplePicker in import .

    import {
    IPropertyFieldGroupOrPerson,
    PropertyFieldPeoplePicker,
    PrincipalType
    } from '@pnp/spfx-property-controls/lib/PropertyFieldPeoplePicker';
  • Rahul_Singh1992's avatar
    Rahul_Singh1992
    Copper Contributor
    can you please share Import statement for @pnp/spfx-property-controls from your code ? I think issue might be there only
    • Rohitkumar11's avatar
      Rohitkumar11
      Copper Contributor
      i have used this import {
      IPropertyFieldGroupOrPerson,
      PrincipalType,
      PropertyFieldPeoplePicker,
      } from "@pnp/spfx-property-controls
      • Rahul_Singh1992's avatar
        Rahul_Singh1992
        Copper Contributor
        can you try this..this should work --/lib/PropertyFieldPeoplePicker in import .

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

Resources