Skip to content

Unable to the load the Custom Application (.sppkg file) on SharePoint Pages and Microsoft Teams Application  #8232

Description

@sandhyar66

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

other (enter in the "Additional environment details" area below)

Developer environment

Windows

What browser(s) / client(s) have you tested

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

Additional environment details

  • browser version
    -Microsoft Edge : 102.0.1245.44 (Official build) (64-bit)

  • Chrome-102.0.5005.115 (Official Build) (64-bit)

  • SPFx version : 1.14.0

  • Node.js version : 14.16.0

  • etc

Describe the bug / error

Uploaded the .sppkg file to SharePoint App Catalog and added the app to the SharePoint Pages.
The error is as shown in the Attached File:
SharePointError

Error Message:
Something went wrong
If the problem persists, contact the site administrator and give them the information in Technical Details.
TECHNICAL DETAILS
[SPLoaderError.loadComponentError]:
Failed to load component "023bf4aa-bc08-4534-a8ca-4dbefbe3e1b2" (DwpWebPart). Original error: Failed to load URL 'https://publiccdn.sharepointonline.com/dtwipro.sharepoint.com/sites/appcatalog/ClientSideAssets/24a68d9a-a909-4f00-afd1-24bc3cf71a9d/dwp-web-part_c010bd1660160519832e.js' for resource 'dwp-web-part' in component '023bf4aa-bc08-4534-a8ca-4dbefbe3e1b2' (DwpWebPart). There was an error requesting the file.

INNERERROR:
Failed to load URL 'https://publiccdn.sharepointonline.com/dtwipro.sharepoint.com/sites/appcatalog/ClientSideAssets/24a68d9a-a909-4f00-afd1-24bc3cf71a9d/dwp-web-part_c010bd1660160519832e.js' for resource 'dwp-web-part' in component '023bf4aa-bc08-4534-a8ca-4dbefbe3e1b2' (DwpWebPart). There was an error requesting the file.
CALLSTACK:
Error
at t [as constructor] (https://res-1.cdn.office.net/files/sp-client/sp-pages-assembly_en-us_6b3ba9b92f0aab063b870bb4542f59a7.js:70:214899)
at new t (https://res-1.cdn.office.net/files/sp-client/sp-pages-assembly_en-us_6b3ba9b92f0aab063b870bb4542f59a7.js:71:7680)
at e.buildErrorWithVerboseLog (https://res-1.cdn.office.net/files/sp-client/sp-pages-assembly_en-us_6b3ba9b92f0aab063b870bb4542f59a7.js:71:44944)
at e.buildLoadComponentError (https://res-1.cdn.office.net/files/sp-client/sp-pages-assembly_en-us_6b3ba9b92f0aab063b870bb4542f59a7.js:71:41035)
at https://res-1.cdn.office.net/files/sp-client/chunk.systemjs-component-loader_en-us_dc58eaaa7aaff14eda18.js:1:6012

Steps to reproduce

Case 1:

  1. Generate a build using Teams Toolkit
  2. Upload the .sppkg file to the SharePoint App Catalog
  3. Add the app to any SharePoint Page
  4. The error message is shown : Something Went Wrong
    SharePointError

Case 2:

  1. Generate a build using Teams Toolkit

  2. Upload the .sppkg file to the SharePoint App Catalog

  3. Click on Sync To Teams Option

  4. The Error Code : 400 is as shown in the screenshot below:
    SyncToTeamsError

  5. Also, Error is shown when trying to open the application on Microsoft Teams Application -

AppError

Expected behavior

The App should launch without any errors in both the SharePoint Pages and Microsoft Teams Custom Application

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋Original poster responded to request for feedback, awaiting attention from Microsoft / community.area:spfxCategory: SharePoint Framework (not extensions related)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