Skip to content

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

@yasothadevi-sivanandham

Description

@yasothadevi-sivanandham

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Triage 🔍type:bug-suspectedSuspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions