Skip to content

SPFX Controls in external library #1864

@gjatbizp

Description

@gjatbizp

I am using "@pnp/spfx-controls-react": "3.18.1" in one of my SPFX Library project. I deployed this library dist files at our CDN.
And I want to consume this library into my webpart project. But when I added a component from library into my webpart tsx file. It is not working and giving following error.

TypeError: Cannot read properties of undefined (reading 'EnvironmentType')

Untitled

Category - Question
Version - 3.18.1

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions