Forum Discussion
Gopi Kondameda
Mar 13, 2017Microsoft
SPFx Client-web part deployed to App Catalog with Error
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_7e0d5042c05ad28d8921cd4db4b615f8.js:57:21572) at t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-02-17.024/sp-webpart-base_en-us_f1e7fe0db482755680368ab38b10cb75.js:47:22738) at t.create (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-02-17.024/sp-webpart-base_en-us_f1e7fe0db482755680368ab38b10cb75.js:47:23180) at Anonymous function (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-02-17.024/sp-webpart-base_en-us_f1e7fe0db482755680368ab38b10cb75.js:48:6288)
based on -
- Gopi KondamedaMicrosoft
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.