sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

error TS2322: Type 'ServiceScope | ServiceScope' is not assignable to type 'ServiceScope'

Open khaledfarghaly opened this issue 4 years ago • 4 comments

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

  • [ ] 💥 Internet Explorer
  • [ ] 💥 Microsoft Edge
  • [ ] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx 1.14.0
  • Node.js 12.22.12
  • studio code

Describe the bug / error

I upgraded my SPFX project from 1.12.1 to 1.14.0

When I build the project. I got this error message error TS2322: Type 'ServiceScope | ServiceScope' is not assignable to type 'ServiceScope'

and here is the list library that I use "@microsoft/sp-component-base","@microsoft/sp-core-library","@microsoft/sp-dynamic-data","@microsoft/sp-http","@microsoft/sp-loader","@microsoft/sp-lodash-subset","@microsoft/sp-page-context","@microsoft/sp-property-pane","@microsoft/sp-webpart-base","@pnp/common","@pnp/modern-search-extensibility"

Steps to reproduce

1.get project spfx 1.12.1 2.upgrade to 1.14.0

Expected behavior

service scop should be working

khaledfarghaly avatar Apr 19 '22 19:04 khaledfarghaly

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Apr 19 '22 19:04 ghost

Thank you @khaledfarghaly for reporting this one. Could you provide a bit more info:

  • The line of code where you're experiencing this issue
  • The content package.json

Could you also try to remove node_modules folder and package-lock.json (or yarn.lock) and check if the error is still there?

AJIXuMuK avatar Apr 19 '22 19:04 AJIXuMuK

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within the next 7 days of this comment. Please see our wiki for more information: Issue List Labels: Needs Author Feedback & Issue List: No response from the original issue author

ghost avatar Apr 27 '22 00:04 ghost

Closing issue due to no response from the original author. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: No response from the original issue author

ghost avatar May 04 '22 02:05 ghost