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 for js-sha3, on esm.sh v58 #221

Closed
ebramanti opened this issue Nov 25, 2021 · 2 comments
Closed

Failed to import for js-sha3, on esm.sh v58 #221

ebramanti opened this issue Nov 25, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ebramanti
Copy link

Failing module

// working
import { keccak_256 } from "https://esm.sh/js-sha3?pin=v54";

// not working
import { keccak_256 } from "https://esm.sh/js-sha3?pin=v58";

Error message

After running deno run I get this:

error: Uncaught SyntaxError: The requested module '/v58/[email protected]/deno/js-sha3.development.js' does not provide an export named 'keccak_256'
import { keccak_256 } from "/v58/[email protected]/deno/js-sha3.development.js";

Additional info

  • esm.sh version: v58
  • Deno version: 1.15.3

Seems like a similar issue to #200, but seems to have been resolved for that particular package.

@ebramanti ebramanti added the bug Something isn't working label Nov 25, 2021
@ebramanti
Copy link
Author

In my use-case, this is a sub-dependency, is there any way I can override the esm.sh version for a nested dependency with the deps flag?

@talentlessguy
Copy link
Contributor

seems to import on v61:

> import sha3 from "https://esm.sh/js-sha3?pin=v61";
undefined
> sha3.keccak_256
[Function] {
  create: [Function],
  update: [Function],
  hex: [Function],
  buffer: [Function],
  arrayBuffer: [Function],
  array: [Function],
  digest: [Function]
}

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