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

SPFx webpart stuck in "Loading..." mode in Internet Explorer 11 with Document Mode 10 on classic pages

Open MFSWE opened this issue 7 years ago • 9 comments

Category

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

Expected or Desired Behavior

SPFx webpart needs to work in Internet Explorer 11 with Document Mode 10 on classic pages.

Observed Behavior

We have several custom SPFx webparts on a classic page in SP Online. When using Internet Explorer 11 in Document Mode 10 the webparts are stuck in "Loading..." mode and will not render. I can see that the language files of each webpart are loaded but the bundle-/code files are not loaded. No error or warning that can be related to this is shown in the browser console.

The same webparts set up on a modern page work without issues.

I've tried adding only one single SPFx webpart to a classic page but still the webpart gets stuck "Loading..."

Reloading the page (pressing F5), the webparts load just fine.

Everything works as expected in Chrome, Edge and Firefox.

Steps to Reproduce

  1. Create a SPFx React webpart.
  2. The JS-files are located in a normal SP library, I am not using a CDN.
  3. office-ui-fabric-react.bundle.min.js and pnp.min.3.0.10.js are set as externals and are not bundled
  4. Add the webpart to a classic page
  5. Use Internet Explorer 11. Open Developer Tools and set Document Mode to 10.
  6. Set the cursor in the address bar and press RETURN.
  7. The page should now load normally except for your webpart that is stuck "Loading..."

Any input/help is appreciated! Regards, Magnus

MFSWE avatar Mar 22 '19 14:03 MFSWE

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Mar 22 '19 14:03 msft-github-bot

Before diving in too far, why are you setting the document mode to 10?

patmill avatar Mar 25 '19 21:03 patmill

Setting Document Mode 10 is the only way for me to reproduce the problem our customer has. They experience the problem when using IE in Document Mode 11. I do not have that problem in Document Mode 11, but when switching to Document Mode 10 i can reproduce the issue.

MFSWE avatar Mar 26 '19 08:03 MFSWE

@MFSWE We had a similar problem that ended up being related to missing polyfills in IE. It might be a good place to start, especially since things seem to work in modern browsers.

https://pnp.github.io/pnpjs/documentation/polyfill/

cameronsibbald avatar Apr 02 '19 22:04 cameronsibbald

@cameronsibbald , was Pat's answer providing you any help?

lucabandMSFT avatar Apr 24 '19 22:04 lucabandMSFT

@lucabandMSFT - It doesn't look to me like Pat's answer provides any help. He's asking for some additional info from @MFSWE.

As mentioned in my comment, we encountered an issue that manifested itself in a similar way to what @MFSWE was describing and solved it by adding some missing polyfills. I was just sharing that information in hopes that it might be helpful here.

cameronsibbald avatar Apr 24 '19 22:04 cameronsibbald

sorry, the question was referred to @MFSWE . Apologies for my error and thanks for your reply.

@MFSWE , can you please try the suggestion @cameronsibbald provided and report if that addresses your scenario?

lucabandMSFT avatar Apr 25 '19 04:04 lucabandMSFT

We only support IE 11 in its native mode. We do not support IE 11 in all of its different document modes.

GrahamMcMynn avatar May 09 '19 17:05 GrahamMcMynn

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 25 '20 00:01 msft-github-bot