sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

SPfx react 15.6v web parts are not loaded in Chrome and firefox intermittently from tuesday

Open JishaRajesh opened this issue 8 years ago • 6 comments

Category

  • [x] Question
  • [ ] Typo
  • [ ] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

The react web parts on the page were working fine till Tuesday. Now in the chrome and the firefox browsers, it fails to load with error "Failed to load resource". they work fine with IE and edge. This issue is intermittent and seen only with react webparts . the web parts using angular js on the page are loading fine.

Also, the jquery reference in master page jquery-2.2.4.min.js when commented the issue is not seen in chrome. Customer wants to know if this is known issue or if there are any changes that happened recently is causing this issue.

Steps to Reproduce

Not seen in hello world web part.

sample web part can be shared based customer's confirmation

Thanks for your contribution! Sharing is caring.

JishaRajesh avatar Nov 23 '18 14:11 JishaRajesh

So, does this happen with a hello world webpart based on the react template? What is the actual text in the "Failed to load resource error"? Is there anything in the dev tools console?

patmill avatar Nov 27 '18 16:11 patmill

Hi Pat,

No this does not replicate with hello world. Looks like there is a jQuery version conflict, as customer is able to overcome the error , if they comment out a jQuery reference made in the master page. Dev tool also does not capture any useful logs. I could see close to 63 errors in chrome, most of them referring to failed to load resource.

Regards, Jisha

From: Pat Miller [email protected] Sent: Tuesday, November 27, 2018 4:14 PM To: SharePoint/sp-dev-docs [email protected] Cc: Jisha Rajesh [email protected]; Author [email protected] Subject: Re: [SharePoint/sp-dev-docs] SPfx react 15.6v web parts are not loaded in Chrome and firefox intermittently from tuesday (#3002)

So, does this happen with a hello world webpart based on the react template? What is the actual text in the "Failed to load resource error"? Is there anything in the dev tools console?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-docs%2Fissues%2F3002%23issuecomment-442117936&data=02%7C01%7Cjiraje%40microsoft.com%7C9cf242c73f214519399608d654835fc1%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636789320563936801&sdata=Lp7EHLv8iD%2BuFRbIdq8tKx7MqxyIR5sNNuc12tAbxlU%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAj-UUdhFnirm8nrDr6fnx8o4WopCgZ2Lks5uzWTVgaJpZM4YwvYe&data=02%7C01%7Cjiraje%40microsoft.com%7C9cf242c73f214519399608d654835fc1%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636789320563946814&sdata=%2Bv5JVYLirwdOxug3DdBxHJ1LIs8R3valPovD8dpq3Xc%3D&reserved=0.

JishaRajesh avatar Nov 28 '18 13:11 JishaRajesh

Is it safe to assume at this point that this is something that the customer will resolve (the conflicting jquery libraries)? Feel free to reopen if you feel differently. Thanks,

patmill avatar Nov 28 '18 19:11 patmill

Hi Everyone,

This is something i came across since last couple of weeks.

After removing the external js & css references, web part is loading fine.

I have almost 6 custom web parts on a page from different solution packages , one of them had external references, which caused to stop loading rest of the web parts.

Removed external references and re deployed the package. then issue got resolved.

Thanks.

sureshchandanam avatar Dec 13 '18 19:12 sureshchandanam

@patmill i can also can replicate this. Had a few spfx webparts with external jss and css (not necessarily jquery) on sharepoint classic page. And it is causing the rest of the webparts within the page to stop loading without any console errors or network errors. Only console errors I got is the cssRules error which is also showing when the webparts are correctly loaded. I am using spfx 1.7.1 image

jonathanhotono avatar Mar 08 '19 01:03 jonathanhotono

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

msft-github-bot avatar Jan 26 '20 00:01 msft-github-bot