Build failure on a project running on TS 4.7.4
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- javascript, nodejs, postgresql, typescript
- 領域
- build-system, database
調査の方向性
TypeScript 4.7.4 でビルドを再現し、node_modules/pg-protocol/dist/serializer.d.ts を調査します。特に、v1.15 で導入されたジェネリックな Buffer の戻り値の型を確認してください。互換性のある解決方法について依存関係とパッケージのメタデータを確認します。古い TypeScript バージョンで、override やアップグレードを必要とせずにプロジェクトをビルドできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
This project have seen successful builds until recently. Looks like pg-protocol switched to TS ^6 starting v1.15 which is a breaking change for those running on older versions.
Build log is below.
node_modules/pg-protocol/dist/serializer.d.ts:34:18 - error TS2315: Type 'Buffer' is not generic.
34 flush: () => Buffer<ArrayBufferLike>;
~~~~~~~~~~~~~~~~~~~~~~~
node_modules/pg-protocol/dist/serializer.d.ts:35:17 - error TS2315: Type 'Buffer' is not generic.
35 sync: () => Buffer<ArrayBufferLike>;
~~~~~~~~~~~~~~~~~~~~~~~
node_modules/pg-protocol/dist/serializer.d.ts:36:16 - error TS2315: Type 'Buffer' is not generic.
36 end: () => Buffer<ArrayBufferLike>;
~~~~~~~~~~~~~~~~~~~~~~~
node_modules/pg-protocol/dist/serializer.d.ts:38:21 - error TS2315: Type 'Buffer' is not generic.
38 copyDone: () => Buffer<ArrayBufferLike>;
~~~~~~~~~~~~~~~~~~~~~~~
Options to resolve I found:
- Pin pg-protocol to v1.14 via
overrideswhich is not ideal - Switch my project to TS ^6 potentially bringing other compatibility issues
Is this possible to keep pg-protocol on the older TS version?
- 主要言語
- JavaScript
- スター
- 13.2k
- フォーク
- 1.4k
- 平均マージ
- 6日 15時間
- マージ済み PR(30日)
- 6
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
brianc/node-postgres のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
brianc/node-postgres#3770 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
brianc/node-postgres#3716 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
brianc/node-postgres#3631 · コメント 1 件 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 62/100
brianc/node-postgres#2857 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
brianc/node-postgres#2433 ·
brianc/node-postgres の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100
-
Issue-Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
sugarlabs/musicblocks#8924 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ArduPilot/ardupilot_wiki#8088 ·
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled オープンcustomer-eng status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100