Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to import - @aws-sdk/client-kms #197

Closed
sjmueller opened this issue Oct 29, 2021 · 1 comment
Closed

Failed to import - @aws-sdk/client-kms #197

sjmueller opened this issue Oct 29, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@sjmueller
Copy link

Failing module

"@aws-sdk/client-kms": "https://esm.sh/@aws-sdk/client-kms"

Error message

After running deno run I get this:

error: Uncaught SyntaxError: The requested module '/v54/@aws-crypto/sha256-browser@2.0.0/deno/sha256-browser.js' does not provide an export named 'Sha256'
    at <anonymous> (https://cdn.esm.sh/v54/@aws-sdk/client-kms@3.39.0/deno/client-kms.js:2:217728)

Additional info

More context can be found here: aws/aws-sdk-js-v3#2810 (comment):

If you look at the original source:

export * from "./crossPlatformSha256";

And then in crossPlatformSha256.ts:

export class Sha256 implements Hash { ... }

The intention of this code structure should result in the package exporting the Sha256 class, but maybe esbuild could be misinterpreting, resulting in the output not including Sha256.

Note that https://cdn.skypack.dev/@aws-sdk/client-kms?dts works as intended, as can be seen here: https://cdn.skypack.dev/-/@aws-crypto/sha256-browser@v2.0.0-hvSgq1UX0ymv6X1i0cjH/dist=es2020,mode=imports/optimized/@aws-crypto/sha256-browser.js

  • esm.sh version: v54
  • Deno version: 1.15.3
@sjmueller sjmueller added the bug Something isn't working label Oct 29, 2021
@talentlessguy
Copy link
Contributor

new error on v55:

Uncaught TypeError: The requested module '/v55/@aws-crypto/sha256-browser@2.0.0/deno/sha256-browser.js' does not provide an export named 'Sha256'
    at async <anonymous>:2:13

@ije ije closed this as completed in fc05f4e Nov 1, 2021
ije added a commit that referenced this issue Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants