microsoft / microsoft/TypeScript
New error: Type instantiation is excessively deep and possibly infinite.
オープン
まだ誰も着手していません。
Needs Investigation
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 132
説明
This one's actually new in 3.8. There are some additional errors in 3.9 - I'll post them below.
packages/core/src/stateUtils.ts:157:36 - error TS2589: Type instantiation is excessively deep and possibly infinite.
157 return getValueFromAdj(rootNode, getAdjList(config));
~~~~~~~~~~~~~~~~~~
packages/core/src/State.ts:181:12 - error TS2589: Type instantiation is excessively deep and possibly infinite.
181 return new State(config);
~~~~~~~~~~~~~~~~~
packages/core/src/interpreter.ts:208:5 - error TS2589: Type instantiation is excessively deep and possibly infinite.
208 this.parent = parent;
~~~~~~~~~~~~~~~~~~~~
packages/core/src/interpreter.ts:783:13 - error TS2345: Argument of type '{ type: string; data: any; }' is not assignable to parameter of type 'string | EventObject | Event<EventObject>[] | Event<EventObject>'.
Object literal may only specify known properties, and 'data' does not exist in type 'EventObject'.
783 data: err
~~~~~~~~~
To repro:
yarntsc -b -f tsconfig.monorepo.json
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされた xstate リビジョンで yarn と tsc -b -f tsconfig.monorepo.json を実行します。まず packages/core/src/stateUtils.ts:157、packages/core/src/State.ts:181、packages/core/src/interpreter.ts:208 と 783 を読んでください。再現ビルドで報告された TS2589 および TS2345 エラーが表示されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- compilers
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100