Uncaught TypeError: Class constructor y cannot be invoked without 'new'
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- cryptography
调研方向
首先,使用提供的 esm.sh import 和 createHmac 调用重现报告的浏览器错误。检查 package 入口点及其面向浏览器的实现,以确定为什么此调用在没有 new 的情况下会失败。完成标准是记录或修正受支持的调用方式,并为所示 snippet 添加回归检查。
由索引模型根据 Issue 内容生成。
描述
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")`
- 主要语言
- JavaScript
- 星标
- 60
- 派生
- 22
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
browserify/createHmac 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 48/100
browserify/createHmac#38 ·
-
难度 2/5 1-3 小时 新手友好度 42/100
browserify/createHmac#35 ·
-
Memory Leak 未关闭
难度 4/5 3-5 天 新手友好度 35/100
browserify/createHmac#32 ·
-
难度 4/5 3-5 天 新手友好度 20/100
browserify/createHmac#30 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 20/100
browserify/createHmac#29 · 4 条评论 · 1 个 reaction ·
查看 browserify/createHmac 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100
-
Issue-Bug
难度 2/5 1-3 小时 新手友好度 68/100
sugarlabs/musicblocks#8924 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
ArduPilot/ardupilot_wiki#8088 ·
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled 未关闭customer-eng status: needs triage
难度 2/5 1-3 小时 新手友好度 84/100