-
Notifications
You must be signed in to change notification settings - Fork 634
Description
Describe the bug
When building a typescript application with a dependency on aws-amplify v3, there is a runtime exception when the library is calling a function on @aws-sdk/credential-provider-cognito-identity package.
It happened after a migration from aws-amplify v2 to v3.
Is the issue in the browser/Node.js/ReactNative?
Browser
To Reproduce (observed behavior)
Typescript application compiling with es module. A simple login will call a function on @aws-sdk/credential-provider-cognito-identity that will throw a "Object(...) is not a function" exception.
Expected behavior
The ES module should be published on NPM. Today, only the CJS module is published. This is weird because a quick inspection of the package.json of @aws-sdk/credential-provider-cognito-identity shows that the build in ES is planned, it is probably ignored during the package publishing.