kripod / kripod/react-polymorphic-types
Could not find a declaration file for module
未关闭
还没有人认领这个 Issue。
- 主要语言
- 没有语言数据
- 星标
- 197
- 派生
- 9
- PR 合并指标
- 30 天内没有已合并 PR
描述
Just installed as a dev dependency in react 19 and getting:
Could not find a declaration file for module 'react-polymorphic-types'. '/Users/me/node_modules/react-polymorphic-types/empty.js' implicitly has an 'any' type.
There are types at '/Users/me/node_modules/react-polymorphic-types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'react-polymorphic-types' library may need to update its package.json or typings.ts(7016)
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先重现 React 19 的 TypeScript 错误,并检查 package.json、index.d.ts 和 empty.js,以了解 package export 是如何解析的。当 package 作为开发依赖安装时,能够找到声明文件且不出现 TS7016 错误,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react, typescript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100