Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Uncaught TypeError: Class constructor y cannot be invoked without 'new'

Open
#34 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
cryptography

Research direction

Start by reproducing the reported browser error with the provided esm.sh import and createHmac call. Inspect the package entry point and its browser-facing implementation to determine why this invocation fails without new. Done means documenting or correcting the supported invocation and adding a regression check for the shown snippet.

Written by the indexing model from the issue text.

Description

Error using this code snippit:
Uncaught TypeError: Class constructor y cannot be invoked without 'new'

`import createHmac from "https://esm.sh/create-hmac";

createHmac("sha256", server_seed)
.update(public_seed)
.digest("hex")`

Dominant language
JavaScript
Stars
60
Forks
22
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from browserify/createHmac

All issues in browserify/createHmac

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.