Forum Discussion
Custom Visual: Using Javascript Promises in Internet Explorer 11
This issue is related to the fact that Power BI creates a copy of window object to isolate PBI code from Custom Visual's code.
Such solution might produce issues with some native methods and it produces issues with importing external libraries.
Meanttime, we're implementing Webpack based PBIVIZ tools to support ES2015 and get rid of this issue by additional code isolation. You can already check it out. It's avaialbe under beta tag on NPM.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- blumi788 years agoHelper I
Tried the beta version (@2.0.1) of the powerbi-visuals-tools package. Gives me a "Syntax error" in IE11 right away with the sample visual that you get with "pbiviz new". Other browsers work, though.
If you say, it's safe to use window["Promise"], then I can work with that.