Forum Discussion

Brent Ellis's avatar
Brent Ellis
Silver Contributor
Aug 07, 2017

Something went wrong error (SPFX React Script Editor)

So i've been using the Modern Script Editor Web Part (SPFX) for several weeks now, and all the sudden in the past hour every web part has stopped working.  I don't know where to begin troubleshooting this.

 

Is something down?  Did SPFX change?  

 

ERROR DETAILS:

 

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 "3a328f0a-99c4-4b28-95ab-fe0847f657a3" (ScriptEditorWebPart).
Original error: ***loadComponent() returned an empty object for component "3a328f0a-99c4-4b28-95ab-fe0847f657a3" (ScriptEditorWebPart).

***INNERERROR:
***loadComponent() returned an empty object for component "3a328f0a-99c4-4b28-95ab-fe0847f657a3" (ScriptEditorWebPart).
***CALLSTACK:
Error
at t [as constructor] (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-07-14.016/sp-pages-assembly_en-us_cfe3bf69b7d19f1e86c75217c3fdf42e.js:351:10483)
at new t (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-07-14.016/sp-pages-assembly_en-us_cfe3bf69b7d19f1e86c75217c3fdf42e.js:905:16704)
at Function.e.buildErrorWithVerboseLog (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-07-14.016/sp-pages-assembly_en-us_cfe3bf69b7d19f1e86c75217c3fdf42e.js:905:13917)
at Function.e.buildLoadComponentError (https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-07-14.016/sp-pages-assembly_en-us_cfe3bf69b7d19f1e86c75217c3fdf42e.js:905:11726)
at https://spoprod-a.akamaihd.net/files/sp-client-prod_2017-07-14.016/sp-pages-assembly_en-us_cfe3bf69b7d19f1e86c75217c3fdf42e.js:905:104731
at <anonymous>

13 Replies

  • arvinditku3018's avatar
    arvinditku3018
    Copper Contributor

    I tried to use react-scripteditor-webpart .But got below error.

     

    ***ERROR MESSAGE: ***Failed to load component "3a328f0a-99c4-4b28-95ab-fe0847f657a3" (ScriptEditorWebPart). Original error: ***Failed to load entry point from component "3a328f0a-99c4-4b28-95ab-fe0847f657a3" (ScriptEditorWebPart). Original error: Error loading https://component-id.invalid/3a328f0a-99c4-4b28-95ab-fe0847f657a3_0.0.1/office-ui-fabric-react as "office-ui-fabric-react" from https://component-id.invalid/3a328f0a-99c4-4b28-95ab-fe0847f657a3_0.0.1 Error loading https://component-id.invalid/3a328f0a-99c4-4b28-95ab-fe0847f657a3_0.0.1/office-ui-fabric-react Unable to load script https://publiccdn.sharepointonline.com/techmikael.sharepoint.com/11510075fe4212d19d3e6d07c91981263dd697bf111cb1e5f0efb15de0ec08b382cde399/2.34.2/office-ui-fabric-react.bundle.min.js ***CALLSTACK: Error: ***Failed to load component "3a328f0a-99c4-4b28-95ab-fe0847f657a3" (ScriptEditorWebPart). Original error: ***Failed to load entry point from component "3a328f0a-99c4-4b28-95ab-fe0847f657a3" (ScriptEditorWebPart). Original error: Error loading https://component-id.invalid/3a328f0a-99c4-4b28-95ab-fe0847f657a3_0.0.1/office-ui-fabric-react as "office-ui-fabric-react" from https://component-id.invalid/3a328f0a-99c4-4b28-95ab-fe0847f657a3_0.0.1 Error loading https://component-id.invalid/3a328f0a-99c4-4b28-95ab-fe0847f657a3_0.0.1/office-ui-fabric-react Unable to load script https://publiccdn.sharepointonline.com/techmikael.sharepoint.com/11510075fe4212d19d3e6d07c91981263dd697bf111cb1e5f0efb15de0ec08b382cde399/2.34.2/office-ui-fabric-react.bundle.min.js at Anonymous function (https://localhost:4321/node_modules/@microsoft/sp-loader/dist/sp-loader_en-us.js:16234:9) at lib$es6$promise$$internal$$tryCatch (https://localhost:4321/node_modules/@microsoft/sp-loader/dist/sp-loader_en-us.js:21064:9) at lib$es6$promise$$internal$$invokeCallback (https://localhost:4321/node_modules/@microsoft/sp-loader/dist/sp-loader_en-us.js:21076:9) at lib$es6$promise$$internal$$publish (https://localhost:4321/node_modules/@microsoft/sp-loader/dist/sp-loader_en-us.js:21047:11) at lib$es6$promise$$internal$$publishRejection (https://localhost:4321/node_modules/@microsoft/sp-loader/dist/sp-loader_en-us.js:20997:7) at lib$es6$promise$asap$$flush (https://localhost:4321/node_modules/@microsoft/sp-loader/dist/sp-loader_en-us.js:20822:9)

     

    The below URL also doesnot work on browsing it.

     

    URL: https://publiccdn.sharepointonline.com/techmikael.sharepoint.com/11510075fe4212d19d3e6d07c91981263dd697bf111cb1e5f0efb15de0ec08b382cde399/2.34.2/office-ui-fabric-react.bundle.min.js Any suggesstions ?

    • Mikael Svenson's avatar
      Mikael Svenson
      Steel Contributor
      ...and, it won't work on local workbench (localhost) as the CDN only works referencing sharepoint.com. Try /_layouts/workbench.aspx instead.
    • Mikael Svenson's avatar
      Mikael Svenson
      Steel Contributor
      Remove the external reference of ui fabric and bundle yourself. That's the easiest. And you cannot browse CDN url's, they must be referenced. And the URL should still work as I haven't removed anything. Also, you might want to log these issues in github :)
  • Rod Merritt's avatar
    Rod Merritt
    Copper Contributor

    I am getting the same error on a web part that was working fine. Is this issue related to a Microsoft Update on our tenant?

    • Mikael Svenson's avatar
      Mikael Svenson
      Steel Contributor
      Not sure, but I'll check it tomorrow at a client where I have deployed it. And nice that it's in use :)
      • Brent Ellis's avatar
        Brent Ellis
        Silver Contributor
        Ok, I rebuilt everything from scratch and re-uploaded app, and all seems to be fixed. No good explanation to what broke, but at least it is working again.

Resources