Using Typescript: Could not find a declaration file for module 'ecctrl'
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- tooling
调研方向
重现 TypeScript 导入错误,然后检查已发布的 dist/Ecctrl.js 入口点以及 ecctrl 包中的所有声明文件 (.d.ts)。当 TypeScript 使用者可以导入 ecctrl 且不再出现缺少声明错误时,即视为完成;根据报告的错误验证该包的类型检查设置。
由索引模型根据 Issue 内容生成。
描述
Hi,
I am excited to use ecctrl, however I am getting the following error when importing the module.
Type error: Could not find a declaration file for module 'ecctrl'. '/Users/konstantinlackner/Dev/konchord-experience-demo/node_modules/ecctrl/dist/Ecctrl.js' implicitly has an 'any' type.
Try npm i --save-dev @types/ecctrl if it exists or add a new declaration (.d.ts) file containing declare module 'ecctrl';
I tried npm i --save-dev @types/ecctrl but it is not in the npm registry.
Any idea how to fix this?
- 主要语言
- TypeScript
- 星标
- 823
- 派生
- 102
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pmndrs/ecctrl 的其他 Issue
-
Rapier Sleeping Body wake up code misses 1 frame of gravity可能已有人在做 @OptimusPi 于 8 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 45/100
-
error未关闭
难度 4/5 3-5 天 新手友好度 15/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 2/5 1-3 小时 新手友好度 48/100
-
React 19可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 82/100
lingdojo/kana-dojo#34714 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
-
needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
manaflow-ai/cmux#59692 ·
维护者通常 1 天内回复
-
Retire stale Python-parity labels in Rust ingress and auth tests可能已有人在做 @github-actions 今天认领。 未关闭factory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
难度 2/5 1-3 小时 新手友好度 82/100
JoshCLWren/comic-pile#5874 · 2 条评论 ·
维护者通常 1 天内回复
-
area: community lane: free-agent priority: P1 roadmap type: task
难度 2/5 1-3 小时 新手友好度 66/100
velella-sh/offing#1046 ·
维护者通常 1 天内回复