react-component / react-component/trigger
Bug: wrong dependency version of @rc-component/util
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 391
- フォーク
- 245
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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]: ^
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
package.json の @rc-component/util 依存関係と、index.tsx の useControlledState インポートを比較します。報告された Yarn 4 および Vite の解決失敗を再現し、その後、依存関係の宣言がそのフックをエクスポートする util バージョンに解決されること、および失敗しているインポートが成功することを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 65/100