-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing documentation regarding On-Premise SP2016 #4681
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
Hi @psylion , |
@psylion , you can check the article here: SharePoint-2016-support.md and SharePoint Framework - SPFx Development With SharePoint 2016 |
@nanddeepn , @Dennis-LZ , thanks for the links, I already look at those content.
When doing simply : Certainly I need to change somethings like the manifest or other config file... |
Please see the docs on setting up your dev environment: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment If you're on SP2016, you must have SP 2016 Feature Pack 2 installed as that includes SPFx. You should install the latest Yeoman generator for SharePoint (currently, v1.9.1). When you create a project, it will prompt you for the environment you are targetting. You'll pick SP 2016. The project created will use the version of SPFx that your env. supports (SPFx v1.0.1). There is a note on the above-mentioned about troubleshooting... it addresses your question on HTTP2 & HTTPS. First, verify your project works in the local workbench (run gulp serve). If that works, then code/project part works. If after deploying you're having trouble, it's likely an issue with the SP 2016 installation & configuration to support hosting apps. |
@andrewconnell thanks for your input, this was helping me understanding the situation of latest version. But still when gulp bundle --ship and gulp package-solution --ship created the package |
@psylion said:
Assume you mean Node.js v10.16.3? If you are running Node @psylion said:
You should not have to do this... it doesn't sound like you have trusted the dev cert which was a step in the link I shared above. @psylion said:
What "issue"... the one about loading the component? If so, did you deploy the JavaScript bundle & manifest to a public location & configure the project to pull from that location? This page in the docs explains deploying to an Azure CDN, but you don't have to use Azure. It just has to be a public location that people can pull the files from when they load the web part in the page. You will need to configure your project so SharePoint knows where to pull the files from as outlined in this section of the same doc. @psylion said:
Not possible... you said you were on SharePoint 2016. You don't have the option to deploy the assets (JS bundle & manifest) with the SharePoint package. that was added to SPFx v1.4.1 and only available in SharePoint Online. Your only deployment option is the two-step option:
For the deployment of the assets, they can go anywhere as long as the users of the web part have permissions to pull from that location. They can be in an Azure CDN, AWS CDN, GCP CDN, public file share, SharePoint doc library... it doesn't matter. Just has to be HTTPS accessible by everyone using the page. |
Diging into other forums I found a description on how to physically modify the write-manifest.json to enter cdnBasePath a path pointing to the local SiteAssets where I copied the content of temp\deply folder 1 json and 2 js. Are these steps mandatory? |
@andrewconnell I think you just reply to my questions in the same time i wrote my last comment. the only remaining issue is the change of the serve.json... I'm running on Win10 and https was not working |
@psylion there are numerous issues, both open & closed, related to HTTPS & the local workbench in this issue list. Please review those and comment back on all the things you've tried. This is not an uncommon issue & entirely dependent on your machine. Usually on Windows it's resolved by untrusting the cert, then re-running the trust-dev-cert task from an administrative command prompt. Regardless, these are two different issues and you should open a different issue related to that. |
Ok thank you |
I wouldn't watch a closed issue like the one you reference... once an issue is closed, it's considered "done"... closed issues don't get much if any attention. In fact, me responding to this issue, now closed, is quite out of the norm :) |
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 |
Category
There is a demand to build solution based on SPFx onPrem.
We are focussing on 2016 but in the near future will go to 2019.
Expected or Desired Behavior
I was not able to find a proper documentation/artcile to create a proper sp2016 on-prem solution.
Apparently there is so many limitation in the versions of Node / SPFx / etc... That I suggest to have a dedicated article point to proper steps.
Observed Behavior
After 3 days of testing many differents solution packaging i still cannot load a proper sppkg on my App Catalog... with the simple hello world in SPFx v1.7.0 using node v8.15.1.
It will be also usefull to provide tips and tricks regarding the simple gulp serve issue on NODE_NO_HTTP2...
The text was updated successfully, but these errors were encountered: