Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
App Package Not Valid #6
Expected or Desired Behavior
To package the solution and upload the sharepoint package file to my app catalog.
Uploaded .sppkg file to app catalog, but Valid App Package column has value of No with Error in App Package also displayed on column value.
Steps to Reproduce
Inside Solution folder, install NPM and gulp, adjust the write-manifest.json to have a cdnBasePath value which is my sharepoint assets folder. run gulp bundle -ship, upload files from deploy folder to sharepoint asset folder. run gulp package-solution -ship. upload .sppkg file to app catalog.
I've now got this working, it was a tenant issue for me.
The API Management section of the new SharePoint Admin Portal was not showing for me, which is required for the AAD integration in SPFX to work, see https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient#manage-permission-requests
My tenant was on targeted release for specific users, I changed this to everyone and after 5-10 mins the API Management section appeared. I was then able to successfully upload the package to the App Catalog and deploy. (Admin Portal -> Settings -> Organization Profile)