Uncaught TypeError: Class constructor y cannot be invoked without 'new'
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from browserify/createHmac
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
browserify/createHmac#38 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
browserify/createHmac#35 ·
-
Memory Leak Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
browserify/createHmac#32 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
browserify/createHmac#30 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
browserify/createHmac#29 · 4 comments · 1 reaction ·
All issues in browserify/createHmac
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
antfu-collective/icones#398 ·
-
ECmail.com Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
wesbos/burner-email-providers#554 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
components-web-app/docs#92 ·