Closed godwin3737 closed 3 years ago
Our samples use ES6 conventions, in particular promises, arrow functions and template literals. As such, they will not work on IE 11 out-of-the-box. For promises, you need to add a polyfill, e.g.:
<head>
<!-- adding pollyfil for promises on IE11 -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/js-polyfills/0.1.42/polyfill.min.js">
</script>
</head>
For arrow functions and template literals, you need to transpile them to older JavaScript. You can use this tool to help with the process.
Should I create a PR with the changes to this sample ?
@godwin3737 we would rather keep this sample in ES6. For a sample compatible with IE11, please check out this.
That works for me @derisen , Thanks!
Library
@azure/msal-browser@2.x.x
Important: Please fill in your exact version number above, e.g.
msal@2.1.3
.Framework
Description
The sample doesnt work on IE 11, throws syntax error on ES6 comptatiblity for =>
Error Message
Syntax error
Security
Regression
Version:
MSAL Configuration
Reproduction steps
Expected behavior
Tried babel polyfill , but tht doesnt seem to fix the issue.
Browsers/Environment