amplify-js: π Bug on IE 11 - Syntax error on version 3.*.* (not present before in 2.*.*)
π Describe the bug
Iβm using the @aws-amplify/auth and @aws-amplify/core packages to add the AWS login functionality to a website.
Everything is fine in the previous releases:
@aws-amplify/auth: ^2.1.8@aws-amplify/core: ^2.3.0
But, updating to the new one:
@aws-amplify/auth: ^3.2.3@aws-amplify/core: ^3.2.3
Cause (only in IE 11) a Syntax error in the console.
P.S.: Iβve tried to update the libraries one-by-one, but the issue still persist.
To Reproduce
Steps to reproduce the behavior:
- Install the latest version of
@aws-amplify/auth@^3.2.3or@aws-amplify/core@^3.2.3; - Import it in a project (iβm using it with webpack, in a Vue/Nuxt environment);
- Open the IE 11 Browser;
- Check the console.
Device
- Device: PC
- OS: Windows 10 x64
- Browser: Chrome 83.0.4103.7 and IE 11
Sample code
import Auth from '@aws-amplify/auth';
import Amplify from '@aws-amplify/core';
Amplify.configure(
{
Auth: config,
}
);
Auth.currentSession();

About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (6 by maintainers)
@Amplifiyer Any idea on this?
This issue is resolved in the latest release, 3.0.22
Correct, we are testing this internally from the other changes within the release to validate it does not break any other additional Amplify use cases. We have an ETA of next week to get this change out. Thanks for the feedback!
aws/aws-sdk-js-v3#1319 The issue should be fixed in latest aws sdk v1.0.0-gamma.3 release (https://github.com/aws/aws-sdk-js-v3/releases/tag/v1.0.0-gamma.3)
@LuXDAmore I have found a workaround to transpile dependencies till we can get a fix from @ericclemmons , hopefully soon.
So the workaround is:
vue.config.js
babel.config.js Now, the babel config - Iβm not saying you have to have it all like this - this is just mine. All I had to change was
useBuiltInsfromusagetoentry, so it might be that itβs all that is needed. But you might also need to be aware of what presets I am actually using, which is different to what comes with Vue-CLI out of the box.main.js
Awaiting a version bump for https://www.npmjs.com/package/@aws-sdk/eventstream-serde-browser