Error : SPWebPartErrorCode.ScriptLoadError]:: Unable to load web part WebPart.GraphSpFxWebPart.764d3811-d551-4127-bed6-b1cec4c230b3,
Category
- [ ] Question
- [x] Bug
- [ ] Enhancement
Expected or Desired Behavior
Created webpart with guidance from https://dev.office.com/sharepoint/docs/spfx/web-parts/get-started/connect-to-sharepoint
Observed Behavior
When Deploying it to the SharePoint App Catalog, I am seeing below error
[SPWebPartErrorCode.ScriptLoadError]:: Unable to load web part WebPart.GraphSpFxWebPart.764d3811-d551-4127-bed6-b1cec4c230b3,Error: Error: Unable to load script https://localhost:4321/dist/graph-sp-fx.bundle.js Error loading https://component-id.invalid/3fdd63f0-7bd8-4cfc-8ebd-9e078193a733 script resources due to: undefined. CALLSTACK:: Error at t [as constructor] (https://spoprod-a.akamaihd.net/files/sp-client-prod_2016-11-28.016/sp-client-base_en-us_a666e7641ac07e434cbbc25b9a2ae3f1.js:48:12396) at new t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2016-11-28.016/sp-webpart-base_en-us_5ade5685acecf1283a7a0e6fafc6dd2c.js:47:21044) at Function.t.create (https://spoprod-a.akamaihd.net/files/sp-client-prod_2016-11-28.016/sp-webpart-base_en-us_5ade5685acecf1283a7a0e6fafc6dd2c.js:47:21457) at https://spoprod-a.akamaihd.net/files/sp-client-prod_2016-11-28.016/sp-webpart-base_en-us_5ade5685acecf1283a7a0e6fafc6dd2c.js:47:30989
Hi @abhishekpuro - Are you still hitting this? If so, can you open the SPFX dev dashboard (ctrl-F12) and post the information you see there, as well as an errors in the normal dev console?
Hi @abhishekpuro, also, looks like the loader is requesting code from the localhost. ( https://localhost:4321/dist/graph-sp-fx.bundle.js) Please make sure gulp serve is running.
Hi @abhishekpuro, are you still seeing this issue?
Hi @abhishekpuro, This is most likely not an issue any more. Thank you for your input, but since we could not receive additional details, we’ll close this for now. If you still see the issue in production, you can always reopen this issue or submit a new one. Your feedback and input is appreciated.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues