Skip to content
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

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

Open
2 of 9 tasks
yasothadevi-sivanandham opened this issue Jan 3, 2025 · 0 comments
Labels
Needs: Triage 🔍 type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs

Comments

@yasothadevi-sivanandham
Copy link

yasothadevi-sivanandham commented Jan 3, 2025

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
  • Google Chrome
  • FireFox
  • Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • 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 yasothadevi-sivanandham added Needs: Triage 🔍 type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs
Projects
None yet
Development

No branches or pull requests

1 participant