question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ES6 arrow function syntax breaking Internet Explorer 11 (IE11)

See original GitHub issue

Describe 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 image

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:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Amplifiyercommented, May 27, 2020

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.

1reaction
sammartinezcommented, Aug 6, 2020

Resolving as this issue is in our latest release, 3.0.22

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found