inngest / inngest-js

The developer platform for easily building reliable workflows with zero infrastructure for TypeScript & JavaScript
https://www.inngest.com/
GNU General Public License v3.0
440 stars 43 forks source link

[BUG] The requested module 'npm:hash.js@^1.1.7' does not provide an export named 'hmac' when running Inngest on Deno #718

Open davidgomes opened 1 month ago

davidgomes commented 1 month ago

Describe the bug / To reproduce Steps to reproduce the behavior:

$ deno repl
Deno 1.46.3
exit using ctrl+d, ctrl+c, or close()
> import Inngest from "jsr:@inngest/sdk";
:white_check_mark: Granted all net access.
Uncaught SyntaxError: The requested module 'npm:hash.js@^1.1.7' does not provide an export named 'hmac' at https://jsr.io/@inngest/sdk/3.22.13/src/helpers/net.ts:2:10
    at async <anonymous>:1:53

Expected behavior This should not crash.

Code snippets / Logs / Screenshots N/A

System info (please complete the following information):

Additional context N/A

linear[bot] commented 1 month ago

INN-3845 [BUG] The requested module 'npm:hash.js@^1.1.7' does not provide an export named 'hmac' when running Inngest on Deno

NicoCaldo commented 1 month ago

With Deno 2 you can useimport { Inngest } from "npm:inngest";