Bug: wrong dependency version of @rc-component/util
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
比较 package.json 中的 @rc-component/util 依赖与 index.tsx 中的 useControlledState 导入。重现报告的 Yarn 4 和 Vite 解析失败,然后验证依赖声明是否解析到导出该 hook 的 util 版本,并验证失败的导入是否成功。
由索引模型根据 Issue 内容生成。
描述
In index.tsx the following line was introduced:
import { useControlledState } from '@rc-component/util';
this will definitely not fork with util@1.2.1. But ^1.2.1 is defined as dependency in package.json.
In my setup yarn 4.9.2 ant.design transitively resolves so that a local node_modules with util in 1.2.1 is used.
In effect vite resolution fails with lines:
[jc-vue]: ../node_modules/@rc-component/trigger/es/index.js (19:9): "useControlledState" is not exported by "../node_modules/@rc-component/trigger/node_modules/@rc-component/util/es/index.js", imported by "../node_modules/@rc-component/trigger/es/index.js".
[jc-vue]: file: /Users/leider/Dev/JavascriptDev/JC-Backoffice/application/node_modules/@rc-component/trigger/es/index.js:19:9
[jc-vue]:
[jc-vue]: 17: import { getAlignPopupClassName } from "./util";
[jc-vue]: 18: import UniqueProvider from "./UniqueProvider";
[jc-vue]: 19: import { useControlledState } from '@rc-component/util';
[jc-vue]: ^
- 主要语言
- TypeScript
- 星标
- 391
- 派生
- 245
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
react-component/trigger 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 58/100
react-component/trigger#623 ·
-
难度 3/5 1-2 天 新手友好度 65/100
react-component/trigger#618 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 42/100
react-component/trigger#555 ·
-
难度 3/5 1-2 天 新手友好度 55/100
react-component/trigger#550 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
react-component/trigger#495 ·
查看 react-component/trigger 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
0xMiden/bridge-portal#132 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
area:tools bug good first issue help wanted priority:P2
难度 2/5 1-3 小时 新手友好度 90/100
TaewoooPark/Motifcode#14 ·
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
newrelic-experimental/preflight#793 · 1 条评论 ·