ES6 arrow function syntax breaking Internet Explorer 11 (IE11)
See original GitHub issueDescribe the bug
Amplify does not work in Internet Explorer 11. It’s possible this was broken by a dependency like @aws-sdk
. It’s unclear how to restore IE11 support to an application implementing Amplify.
To Reproduce
Repro available here: https://github.com/sawyerh/amplify-nextjs-ssr
Expected behavior It’s unclear what the official browser support is for Amplify, however the Amplify SDK previously worked in IE 11, and according to this comment AWS is still supporting IE11.
Screenshots
What is Configured?
"dependencies": {
"aws-amplify": "3.0.9",
"aws-amplify-react": "4.1.8",
"next": "9.3.5",
"react": "16.13.1",
"react-dom": "16.13.1"
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:14 (4 by maintainers)
Top Results From Across the Web
Why doesn't this arrow function work in IE 11? - Stack Overflow
You're using arrow functions. IE11 doesn't support them. Use function functions instead. Here's Babel's translation of that to ES5:
Read more >46110 (IE11: JS "Syntax error" related to wp-polyfill-formdata)
IE11 doesn't support "arrow functions" and other ES6 features in that file. Asked for feedback on Slack #core-editor and it was pointed out...
Read more >Handling common JavaScript problems - MDN Web Docs
Arrow functions are supported across all modern browsers, except for IE. Declaring strict mode at the top of your JavaScript code causes it...
Read more >Debug JavaScript in Internet Explorer 11 in 7 easy steps
Need to debug JavaScript in Internet Explorer? Simply follow these 7 steps. Includes examples. Read our debugging guide today.
Read more >Arrow function make javascript incompatible with IE 11 (ES 5)
Problem/Motivation When using Internet Explorer 11 the module throws an error and submitting the form is inpossible.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
it seems there is one more package that got missed which targets ES2016 output https://github.com/aws/aws-sdk-js-v3/blob/v1.0.0-gamma.2/packages/middleware-serde/tsconfig.json#L3 I’ll create an issue with aws-sdk to get this prioritized.
Resolving as this issue is in our latest release, 3.0.22