SPFx 1.8.2 local workbench error in IE11
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)
Side remark: hosted workbench currently still works.
Steps to Reproduce
- Create a solution with SPFx 1.8.2
- Run
gulp serve - 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/
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
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!
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?
Any fix for this?
@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?
Yup... good eye.
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