Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`rescript/cli/bins` checks Node.js >=20.11.0 while the packages require >=22

オープン 初心者向け
#8,761 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, nodejs
領域
cli

調査の方向性

cli/common/bins.cjs のバージョン定数とエラーメッセージ(9行目付近と69行目付近)から始め、ルートの engines.node、packages/@rescript/*/package.json、そして .nvmrc と比較してください。実行時チェックとそのメッセージの両方が Node 22 を要求し、Node 20.11〜21 が分かりやすいエラーとともに拒否されれば完了です。CI の Node バージョン設定を確認し、ほかに 20.11 を前提としている箇所が残っていないことを確かめてください。

索引モデルが issue の本文から書いたものです。

説明

Found by differential semantic drift analysis from ece8b148 to a7721303.

What is broken

cli/common/bins.cjs L9 checks for Node.js >=20.11.0 and reports "ReScript requires Node.js >=20.11.0" (L69), while every other statement of the requirement says 22:

  • engines.node is ">=22" in the root package.json and in all five packages/@rescript/*/package.json (#8695);
  • .nvmrc is 22; CONTRIBUTING.md says v22.x or newer; CI tests "oldest supported" with node-version: 22.

So on Node 20.11–21 the runtime check passes and users get no clear message, although the version is unsupported.

Related: #8694 and #8695, both listed in #8712; this is how the two interact, not a repeat of either.

Possible cause (speculation only)

A guess: #8694 copied the version constant from the previous bins.js while #8695 raised the requirement in parallel, and neither PR saw the other's change.

主要言語
OCaml
スター
7.5k
フォーク
484
平均マージ
22時間 10分
マージ済み PR(30日)
70

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rescript-lang/rescript のほかの issue

rescript-lang/rescript の issue をすべて見る

似ている issue

CLI の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。