not support ES module
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- node.js, typescript
调研方向
使用 npx dts-gen -m ipfs-core --stdout 重现失败,并从 dts-gen/dist/run.js 开始调查,堆栈跟踪显示程序包在此处被加载。跟踪命令如何解析 ipfs-core,并验证命令在处理 ES 模块时不再因 ERR_PACKAGE_PATH_NOT_EXPORTED 而崩溃。
由索引模型根据 Issue 内容生成。
描述
$ npx dts-gen -m ipfs-core --stdout
Unexpected crash! Please log a bug with the commandline you specified.
/Users/user/.npm/_npx/8ffe955cebeb71d5/node_modules/dts-gen/dist/run.js:154
throw e;
^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /Users/user/eth/orbitdb/orbitdb-demo-ts/node_modules/ipfs-core/package.json
at new NodeError (node:internal/errors:405:5)
at exportsNotFound (node:internal/modules/esm/resolve:362:10)
at packageExportsResolve (node:internal/modules/esm/resolve:642:13)
at resolveExports (node:internal/modules/cjs/loader:567:36)
at Module._findPath (node:internal/modules/cjs/loader:636:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object. (/Users/user/.npm/_npx/8ffe955cebeb71d5/node_modules/dts-gen/dist/run.js:82:67) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
- 主要语言
- TypeScript
- 星标
- 422
- 派生
- 237
- 平均合并
- 1 天 6 小时
- 30 天内合并 PR
- 11
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/DefinitelyTyped-tools 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 66/100
microsoft/DefinitelyTyped-tools#1324 · 9 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 32/100
microsoft/DefinitelyTyped-tools#1230 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 42/100
microsoft/DefinitelyTyped-tools#1229 ·
维护者通常 1 天内回复
-
mergebot staleness comments do not respect tooManyOwners可能已有人在做 @copilot-swe-agent 于 334 天前认领。 未关闭
microsoft/DefinitelyTyped-tools#1218 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 45/100
microsoft/DefinitelyTyped-tools#1211 · 1 条评论 ·
维护者通常 1 天内回复
查看 microsoft/DefinitelyTyped-tools 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
paperclipai/paperclip#16785 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
code-yeongyu/senpi#3661 ·
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 78/100
lingdojo/kana-dojo#32731 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
bug status: needs triage
难度 2/5 1-3 小时 新手友好度 76/100
mastra-ai/mastra#27538 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
Yeachan-Heo/oh-my-codex#3822 ·
维护者通常 1 天内回复