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

Cannot add "HelloWorldWebPart" to my local SharePoint 2016 On-Premise

Open MrDrSushi opened this issue 9 years ago • 2 comments

Category

  • [x] Question
  • [ ] Typo
  • [ ] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

I'm following the instructions from the tutorial at https://dev.office.com/sharepoint/docs/spfx/web-parts/get-started/connect-to-sharepoint - it seems every thing works fine when I'm adding and testing the new web part on my https://localhost:4321/temp/workbench.html

The problem only occurs when I try to add the new web part using my local dev http://portal.overlord.local:8080/_layouts/Workbench.aspx - at this point I'm not sure if it can really work because the tutorial is based on SharePoint Online and I'm running my dev on SharePoint 2016 On-Premise.

Does the following error is a result of SharePoint 2016 On-Premise limitation? or is it a problem with my code?

Observed Behavior

It works on my local workbench but not on my local dev running SharePoint 2016 On-Premise

Steps to Reproduce

On the new page under my local workbench I click the (+) and click on the option "HelloWolrd" and the web part is displayed on the page - it works fine

On the new page under my local dev on SharePoint 2016 On-Premise I click on the (+) and I get an error message:

hw-1

Despite the error message, the web part still available underneath, then I click on the web part to add to the page and I get the following error message:

hw-2

MrDrSushi avatar Jul 26 '17 04:07 MrDrSushi

I found the solution after searching around on Google, it does need SharePoint Feature Pack 2, which is coming this Fall 2017

MrDrSushi avatar Jul 26 '17 05:07 MrDrSushi

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 29 '20 06:01 msft-github-bot