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

SPFX webpart not visible When trying to add to the "Add App" in SharePoint 2016 on premise environment

Open kbkotresh opened this issue 7 years ago • 14 comments

Category

  • [x] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea Steps to reproduce : below Packages are installed in the Local environment.

+-- @microsoft/[email protected] +-- [email protected] +-- [email protected] `-- [email protected]

step 2: Create sample webpart 3. Bundle --ship 4. pacakage- solution 5. add json files from Temp/deploy to my CDN path. 6. Upload the Package from SharePoint\Soluiton to App catalog in SP2016 7. Naigate to Other Web application and Try to Add webpart in Site contents. 8 Not able to see the webpart in the "Add app" image

Reference URL : https://docs.microsoft.com/en-us/sharepoint/dev/spfx/sharepoint-2016-support

kbkotresh avatar Jan 04 '19 07:01 kbkotresh

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

msft-github-bot avatar Jan 04 '19 07:01 msft-github-bot

hi , As per the reference url I have uninstalled the current version of @microsoft/generator-sharepoint and installed the generator as below. +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- [email protected] +-- [email protected] `-- [email protected] When i create the Sample webpart i am getting below Error message. Please help to resolve the issue image

kbkotresh avatar Jan 04 '19 08:01 kbkotresh

hi , Above issue is resovled by running the below command image

But still App is not visible in the App http://Sitecollection/_layouts/15/addanapp.aspx url Kindly let me know how to resolve the issue

kbkotresh avatar Jan 04 '19 11:01 kbkotresh

You've got a bit of a weird combination.

Install 1.7.1 of the generator, and when requested, select "on prem 2016" as the target.

patmill avatar Jan 04 '19 18:01 patmill

SharePoint 2016 does not support spfx v1.7. It only supports v1.1. As per the documentation:- SharePoint 2016 Feature Pack 2 supports SharePoint Framework client-side web parts hosted on classic SharePoint pages built by using the SharePoint Framework v1.1.0. This means that when you are targeting the SharePoint 2016 platform, you need to use the SharePoint Framework v1.1.0 due to the server-side version dependencies.

Also SharePoint 2019 supports 1.4.1 version. Here are the release notes. https://github.com/SharePoint/sp-dev-docs/wiki/SharePoint-Framework-v1.7-release-notes

iamguptarishi avatar Jan 06 '19 19:01 iamguptarishi

hi @iamguparishi, Yes I have updated with SP2016 feature pack 2 and based on the documentation https://docs.microsoft.com/en-us/sharepoint/dev/spfx/sharepoint-2016-support I have changed the generator to 1.0.2 and able to do gulp serve. but when I added the package to SP2016 app catalog . When trying to Add App its not showing up in the list of apps.

Kindly let me know how to resolve this issue .

kbkotresh avatar Jan 07 '19 05:01 kbkotresh

Do you have your code available anywhere, so that I can check?

iamguptarishi avatar Jan 07 '19 06:01 iamguptarishi

Do you have your code available anywhere, so that I can check?

hi sorry , could not upload full src code . please find the attached package file

testsp-2.zip

kbkotresh avatar Jan 07 '19 06:01 kbkotresh

@iamguptarishi

SharePoint 2016 does not support spfx v1.7. It only supports v1.1.

Correct, but the latest generator can be used to create projects for SP2016 as it adds the correct dependencies.

@kbkotresh When you deployed to the app catalog, did it show any errors with the package you uploaded after clicking Deploy?

Furthermore, two more questions/observations:

  • what version of NodeJS are you running? (node -v)
  • you're using a very old version of NPM... suggest you update NPM.

andrewconnell avatar Jan 09 '19 12:01 andrewconnell

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 next 7 days of this comment. Thank you for your contributions to SharePoint Developer documentation!

msft-github-bot avatar Jan 16 '19 13:01 msft-github-bot

Closing issue due no response from original author. If this issue is still occurring, please open a new issue with additional details. Notice that if you have included another related issue as additional comment on this, please open that also as separate issue, so that we can track it independently.

msft-github-bot avatar Jan 23 '19 13:01 msft-github-bot

I have a similar situation, but it's for SharePoint online, before upgrading to SPFx 1.8, deployed apps are visible and can be installed after upgrading, deployed apps (webparts, extension) are not visible at all..

please advice

thanks

manlamcheng avatar Mar 22 '19 15:03 manlamcheng

before upgrading to SPFx 1.8, deployed apps are visible and can be instal

Same for me

ValerasNarbutas avatar Jan 14 '20 13:01 ValerasNarbutas

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 25 '20 12:01 msft-github-bot