SPFx React web part error message when adding to page.

Brass Contributor

Hey all,

For some reason, when I try to add a web part to a modern page, I am getting the following error:

 

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 "c042f2ea-6de7-4c60-853e-e3295f3ec6d5" (LrLeaverequestformWebPart). Original error: ***Failed to load URL 'https://publiccdn.sharepointonline.com/my-sharepoint-site.sharepoint.com/sites/DevAppsCatalog/Client...' for resource 'my-web-part' in component 'c042f2ea-6de7-4c60-853e-e3295f3ec6d5' (MyWebPart). There was a network problem. This may be a problem with a HTTPS certificate. Make sure you have the right certificate.

***INNERERROR:
***Failed to load URL 'https://publiccdn.sharepointonline.com/my-sharepoint-site.sharepoint.com/sites/DevAppsCatalog/Client...' for resource 'my-web-part' in component 'c042f2ea-6de7-4c60-853e-e3295f3ec6d5' (MyWebPart). There was a network problem. This may be a problem with a HTTPS certificate. Make sure you have the right certificate.
***CALLSTACK:
Error
at t (https://spoprod-a.akamaihd.net/files/sp-client/sp-pages-assembly_en-us_cb037150dad84488469b29c1c6c92...)
at t (https://spoprod-a.akamaihd.net/files/sp-client/sp-pages-assembly_en-us_cb037150dad84488469b29c1c6c92...)
at e.buildErrorWithVerboseLog (https://spoprod-a.akamaihd.net/files/sp-client/sp-pages-assembly_en-us_cb037150dad84488469b29c1c6c92...)
at e.buildLoadComponentError (https://spoprod-a.akamaihd.net/files/sp-client/sp-pages-assembly_en-us_cb037150dad84488469b29c1c6c92...)
at Anonymous function (https://spoprod-a.akamaihd.net/files/sp-client/sp-pages-assembly_en-us_cb037150dad84488469b29c1c6c92...)
 
The thing is, on another hub site that I used for development and testing, the web part works completely fine. However, when I add the app to the site contents of the production hub site, and try to add it on a page, I get the above error...
 
Is anyone experiencing the same problem?
1 Reply

UPDATE: 

 

I've now noticed that even on the hub site that I use for development and testing, the web part is now NOT WORKING. It is throwing the same error message.

 

I have also tried using gulp trust-dev-cert cmd again before packaging up the solution, and there has been no difference.

 

Additionally, I have asked the networking guys to check to see if anything was being blocked, and they have been troubleshooting with me this morning. So far, it all results to the same error message.

 

Is this a SharePoint/ Microsoft error? Or am I missing something? Is anyone receiving the same message? Any feedback is helpful!