sp-dev-fx-extensions icon indicating copy to clipboard operation
sp-dev-fx-extensions copied to clipboard

react-application-alert-banner: Could not find Element Manifest: sp-dev-fx-extensions-main\samples\react-application-alert-banner\sharepoint\assets\elements.xml

Open yasothadevi-sivanandham opened this issue 1 year ago • 1 comments

Sample

react-application-alert-banner

Author(s)

@Nicolas Kheirallah

What happened?

When i try to bundle and package the solution I get below error.

[16:25:06] [package-solution] Reading Sharepoint Assets & Creating XML... [16:25:06] Error - [package-solution] Error: Could not find Element Manifest: \sp-dev-fx-extensions-main\samples\react-application-alert-banner\sharepoint\assets\elements.xml [16:25:06] Finished subtask 'package-solution' after 155 ms [16:25:06] Finished 'package-solution' after 162 ms [16:25:07] ==================[ Finished ]================== Error - [package-solution] Error: Could not find Element Manifest: /sp-dev-fx-extensions-main/samples/react-application-alert-banner/sharepoint/assets/elements.xml [16:25:07] Project alert-banner version:0.0.1 [16:25:07] Build tools version:3.19.0 [16:25:07] Node version:v18.20.5 [16:25:07] Total duration:4.24 s [16:25:07] Task errors:1

Steps to reproduce

  1. Clone the repository
  2. Navigate to the solution folder in node.js command prompt
  3. Run npm install
  4. Run gulp build
  5. Run gulp bundle --ship
  6. gulp package-solution --ship

Expected behavior

The solution to be packaged successfully

Target SharePoint environment

SharePoint Online

Developer environment

Windows

Browsers

  • [ ] Internet Explorer
  • [ ] Microsoft Edge
  • [X] Google Chrome
  • [ ] FireFox
  • [ ] Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [X] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Node.js version

v18.20.5

Additional environment details

[email protected] D:\SPFx\sp-dev-fx-extensions-main\samples\react-application-alert-banner +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @microsoft/[email protected] +-- @rushstack/[email protected] +-- @types/[email protected] +-- @types/[email protected] +-- @types/[email protected] +-- @types/[email protected] +-- [email protected] +-- [email protected] extraneous +-- [email protected] +-- [email protected] +-- [email protected] extraneous +-- [email protected] +-- [email protected] +-- [email protected] extraneous +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] `-- [email protected]

If i manually add elements.xml I am getting further files missing error for /sp-dev-fx-extensions-main/samples/react-application-alert-banner/sharepoint/assets/listElements.xml.

When I download/clone the repo, sharepoint/assets folder is not found.

yasothadevi-sivanandham avatar Jan 03 '25 11:01 yasothadevi-sivanandham

Seems like the SP folder got list in the merger

I've got a repo under my profile with the same code. Just copy that and I'll merge the SP folder with the configs here later!

NicolasKheirallah avatar Jan 09 '25 22:01 NicolasKheirallah