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

SPFx 1.8.2 local workbench error in IE11

Open YannickRe opened this issue 7 years ago • 7 comments

Category

  • [X] Bug

Expected or Desired Behavior

I expect the local workbench to work in IE 11

Observed Behavior

The local workbench fails in IE 11:

SCRIPT1053: Const must be initialized
workbenchInit.js (10,21)

SCRIPT5007: Object expected
sp-loader-assembly_default.js (5190,13)

182-localworkbench-IE11

Side remark: hosted workbench currently still works.

Steps to Reproduce

  1. Create a solution with SPFx 1.8.2
  2. Run gulp serve
  3. Open local workbench in IE 11

Preliminary analysis

workbenchInit.js uses for..of loops (with const) which isn't supported in IE11:

for (const manifest of manifests) {
    manifestIds.push(manifest.id.toUpperCase());
}

See: https://kangax.github.io/compat-table/es6/

YannickRe avatar May 26 '19 15:05 YannickRe

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

msft-github-bot avatar May 26 '19 15:05 msft-github-bot

Have you reviewed the recently published supported browsers docs here: https://support.office.com/en-us/article/Which-Browsers-Work-With-Office-Online-AD1303E0-A318-47AA-B409-D3A5EB44E452

Pay special attention to the IE11 node for the modern experience & IE's document mode.

If you continue to have the issue, please comment back with some additional context. Thanks!

andrewconnell avatar Aug 09 '19 20:08 andrewconnell

I checked it again with SPFx 1.9.1 and made sure the IE 11 document mode was set correctly, but it still doesn't work.

I create a new SPFx 1.9.1 project, select webpart and no javascript framework (basically I hit enter until the project is ready). I run gulp serve, it opens in Chrome without issue. I then open https://localhost:5432/workbench in IE11. The screen stays blank and the errors from my original post show in the console.

Not sure what additional context you'd like?

YannickRe avatar Aug 14 '19 20:08 YannickRe

Any fix for this?

euvin3582 avatar Aug 20 '19 18:08 euvin3582

@andrewconnell While running through the list of issues, I think this ticket might be a duplicate of #2892 I'm sorry, maybe we can merge or close this?

YannickRe avatar Sep 02 '19 11:09 YannickRe

Yup... good eye.

andrewconnell avatar Sep 02 '19 17:09 andrewconnell

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 24 '20 12:01 msft-github-bot