Skip to content

Few librairies are not published in esmodule #1476

@superCarton

Description

@superCarton

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions