-
Notifications
You must be signed in to change notification settings - Fork 834
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
SharePoint folder and .sppkg file #764
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
You must run |
Hi @bcameron1231 and thank you for your answer, Error - 'package-solution' sub task errored after 2.11s Any ideas? |
Ah my apologies, I didn't realize it's looking for the xml file. Ya it should be in there. Basically you need to create the sharepoint/assets/elements.xml file. In there you will need to provide the custom action registration. See this documentation. I haven't tested, but this looks to be a document library. This elements xml may work, though I haven't tested
|
Hi @bcameron1231, I have tried with your elements.xml and replaced the ClientSideComponentId with my file ID: /src/extensions/documentPreview/DocumentPreviewCommandSet.manifiest.json When I run the command again I get the following error: Just in the documentation that you have sent me appears the method to create this ClientSideInstance.xml file, here is the sample: *I have created the file but two ID's appear but I don't know why to replace them as neither matches the elements.xml file in that same document. When I run the command again, it correctly creates the .sppkg file in /sharepoint/solution but when I install the application in SharePoint Online the following error appears in the column "Valid app package": No. Invalid SharePoint App package. Error: The specified node cannot be inserted as the valid child of this node, because the specified node is the wrong type. Thank you again. |
Any ideas? |
Sample
https://github.com/pnp/sp-dev-fx-extensions/tree/main/samples/react-command-document-preview
Author(s)
hugoabernier
Question
I am trying to test the react-command-document-preview development on my SharePoint Online but I can't compile it as the "SharePoint" folder with the necessary files and the final ".sppkg" file is missing.
Can someone upload the SharePoint folder to the repository?
I have tried with a SharePoint folder from another application and I can compile it but the development does not work in my SharePoint Online as the button does not appear.
The text was updated successfully, but these errors were encountered: