SPFx Client-web part deployed to App Catalog with Error

Microsoft

I am trying to do a test deployment of sample hellow-world spfx web-part, it works on local/spo work.

So I have packaged and deployed to App catalog and I ran gulp server --nobrowser.

 

However when I add the app to either classic or modern page getting

spfxsample

 
Loading spfxsample...
[SPWebPartErrorCode.ScriptLoadError]:: Unable to load web part WebPart.SpfxsampleWebPart.g_717a1ff7_d142_4427_bf82_3f9e95ec1f12,Error: ***Failed to load component "975235e6-352b-4a1a-a243-5cef666f5cd0" (SpfxsampleWebPart). Original error: ***Failed to load path dependency "spfxsampleStrings" from component "975235e6-352b-4a1a-a243-5cef666f5cd0" (SpfxsampleWebPart). script resources due to: {1}. CALLSTACK:: Error at t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-02-17.024/sp-loader_en-us_7e0d5042c05ad28d8...) at t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-02-17.024/sp-webpart-base_en-us_f1e7fe0db48...) at t.create (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-02-17.024/sp-webpart-base_en-us_f1e7fe0db48...) at Anonymous function (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-02-17.024/sp-webpart-base_en-us_f1e7fe0db48...)

 

based on -

https://dev.office.com/sharepoint/docs/spfx/web-parts/get-started/serve-your-web-part-in-a-sharepoin...

 

1 Reply

Forgot to mention - if add the CDN  with "cdnBasePath"
and Run command "Gulp bundle --ship"
upload the temp/deploy packages to above mentioned "cdn document library"

gulp package-solution --ship

 

This was working.