pnp / pnp/sp-dev-fx-controls-react

package version conflict regarding LivePersona

Open
#1,290 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs: Attention :wave:
Dominant language
TypeScript
Stars
433
Forks
418
Avg merge
5d 6m
Merged PRs (30d)
19

Description

Hello,

I am trying to use pnp control LivePersona in my spfx project.
this control needs a prop 'serviceScope' , when I pass webpart context to it, it will prompt an error:

image

Error:

Type 'import("C:/nline_1.15/node_modules/@microsoft/sp-core-library/dist/index-internal").ServiceScope' is not assignable to type 'import("C:/nline_1.15/node_modules/@pnp/spfx-controls-react/node_modules/@microsoft/sp-core-library/dist/index-internal").ServiceScope'. Types have separate declarations of a private property '_registrations'.

it seems that PNP control uses spfx 1.14 while my project uses 1.15. there're 2 "@microsoft/sp-core-library", one is spfx (1.15), other is 1.14.

please help me! I need the below hover card while fluent UI does not have

image

Category

[ ] Enhancement

[ ] Bug

[x ] Question

Environment

Node: v14.20.0
Spfx: lastest, 1.15

Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the LivePersona control documentation and compare its @microsoft/sp-core-library dependency with the project's SPFx 1.15 version. Confirm whether the serviceScope type conflict can be resolved with compatible package versions; done means the web part context is accepted without duplicate ServiceScope declarations.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.