Description
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
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 - Edge latest
- SPFx version - 1.11
- Node.js version
- etc
Describe the bug / error
- We have developed a custom SPFx component and deployed to different environments - Dev/Stg/UAT/Prod. We have enabled side loading in all the Dev/Stg/UAT environments. We have both the Extension & webpart in this SPFx solution. We observed that the XYZ-extension-application-customizer_16345316eb49d720a1d078eb095432g9.js is loading from local catalog instead of appcatalog folder in the higher/prod environments where side loading is not enabled
Actual:
https://publiccdn.sharepointonline.com/<>.sharepoint.com/teams/<>/ClientSideAssets/<>/XYZ-extension-application-customizer_<>.js
Expected:
https://publiccdn.sharepointonline.com/<>.sharepoint.com/sites/catalog/ClientSideAssets/<>/XYZ-extension-application-customizer_<>.js
-
We have also observed that for some users the older version of file is getting loaded related to chunk.js and the functionality is breaking
-
Also the webpart is observed in loading in the context of the lower environment site where we have almost 10 webpart properties. But, it has only 5 webpart properties in higher/prod environment
-
If we are deleting the "Cookies and other site data" and "Cached images and files" and doing a fresh request in higher/prod site - everything is working fine.
All this was working properly till Apr 28th. We feel this issue has come up suddenly and guessing any environment issue. Can you please let us know the possible cause for this issue and the resolution.
Steps to reproduce
- Develop SPFx webpart
- Deploy in more than one site collection
- Open the lower env where the side loading is enabled in one tab
- Open the higher/prod env site where the side loading is disabled in other tab
- In the environment/site opened in second tab, we see the files are loaded from lower environments and not from respective environment.
- IF we reverse the opening order of the sites, it is behaving in opposite way
- Only the first opened environment is working fine
- If we are deleting the "Cookies and other site data" and "Cached images and files" and doing a fresh request in higher/prod site - everything is working fine.
Expected behavior
Irrespective of how many sites are opened that has the same SPFx webpart - webpart should load the respective files from its own package and not from other site associated package and also not from the older versions of the spfx webpart assoiated files.