Forum Discussion
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>
- Brent EllisSilver Contributor
CCing Mikael Svenson
- Mikael SvensonSteel ContributorNot sure, but I'll check it tomorrow at a client where I have deployed it. And nice that it's in use :)
- Brent EllisSilver Contributormuch appreciated, it works amazingly for all kinds of little and big things (and it is the big things down I'm worried about at the moment)
- Rod MerrittCopper 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?
- arvinditku3018Copper 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 SvensonSteel ContributorRemove 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 :)
- Mikael SvensonSteel Contributor...and, it won't work on local workbench (localhost) as the CDN only works referencing sharepoint.com. Try /_layouts/workbench.aspx instead.