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

npm: source-only hot reloads still reinstall packages because the rendered package.json has `devDependencies: {}` while the on-disk one has no key (residual of #7235)

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

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

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

評価

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

調査の方向性

まず reflex/utils/frontend_skeleton.py の sync_root_package_json_to_web と _compile_package_json を確認し、REFLEX_USE_NPM=1 とラベルのみの編集で再現してインストール回数を観察する。次に reflex/utils/js_runtimes.py を確認し、レンダリングされた package.json とディスク上の package.json を比較するインストールキャッシュの無効化処理を見る。devDependencies が absent と empty で等しく比較され、余分な npm install がトリガーされないことが「完了」の判定であり、prerelease_testing/2026-10-07/browser_cache_bundle/reload_cache/ の npm_minimal.py による再現で検証する。

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

説明

Severity: LOW, pre-existing (0.9.12, 0.10.0a1, 0.10.0a2). Residual of #7235.

With REFLEX_USE_NPM=1, a label-only edit raises the install count 1→2 although both lockfile hashes are unchanged; the only manifest difference is devDependencies: {} in the rendered package.json versus no key in the one on disk. Adding that empty object by hand stops the extra installs on both alphas (stable's byte comparison still reinstalls). Bun is unaffected. Likely spot: the package.json sync/compare in reflex/utils/frontend_skeleton.py (sync_root_package_json_to_web / _compile_package_json) and the install-cache invalidation in reflex/utils/js_runtimes.py — normalise absent vs empty devDependencies before comparing.

Evidence: browser_cache_bundle/reload_cache/NOTES.md (npm_minimal.py, minimal_results/); finding N-018 in FINDINGS.md.

主要言語
Python
スター
28.9k
フォーク
1.8k
平均マージ
1日 22時間
マージ済み PR(30日)
199

環境構築

Codespaces で開く

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

はじめの一歩

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

reflex-dev/reflex のほかの issue

reflex-dev/reflex の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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