SPFX webpart not visible When trying to add to the "Add App" in SharePoint 2016 on premise environment
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"

Reference URL : https://docs.microsoft.com/en-us/sharepoint/dev/spfx/sharepoint-2016-support
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
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

hi ,
Above issue is resovled by running the below command

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
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.
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
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 .
Do you have your code available anywhere, so that I can check?
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
@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.
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!
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.
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
before upgrading to SPFx 1.8, deployed apps are visible and can be instal
Same for me
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