Skip to content

Current package version (3.21.0) does not work with the SPFx version 1.21.1 #2018

@vishalshitole

Description

@vishalshitole

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ 3.21.0 ]

Expected / Desired Behavior / Question

The current version of the @pnp/spfx-controls-react package 3.21.0 should work with the latest version of the SharePoint Framework SPFx 1.21.1.

Observed Behavior

While bundling and/or serving the SPFx solution created with the SPFx version 1.21.1, which has the dependency on @pnp/spfx-controls-react: 3.21.0, I receive an error. Please see the screenshot below for the error message.

Image

Steps to Reproduce

  1. Create a simple web part (React) solution with SPFx version 1.21.1.
  2. Add @pnp/spfx-controls-react: 3.21.0 as a dependency in the package.json
  3. Run npm install in terminal
  4. Build the solution with gulp build --ship
  5. Bundle the solution with gulp bundle --ship
  6. Observe the terminal output

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions