docs: README says Node 22 is required, but .nvmrc pins v24 and preinstall enforces it
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 88/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, node.js
- Lĩnh vực
- developer-experience, documentation, testing
Hướng nghiên cứu
Bắt đầu với README.md, sau đó đối chiếu các điều kiện tiên quyết trong đó với .nvmrc và scripts/node-check.js để ghi lại phiên bản Node bắt buộc và hành vi preinstall. Xem lại hướng dẫn kiểm thử package, bao gồm lệnh của packages/layout_editor node --test src/lib/*.test.js và yêu cầu chạy các bài kiểm thử của package từ bên trong package. Công việc được coi là hoàn tất khi các contributor có thể cài đặt đúng phiên bản Node và tìm thấy các lệnh kiểm thử liên quan mà không cần đọc các tệp package.json.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
README.md tells new contributors to install Node 22:
- Node.js: Version 22 (LTS) is required.
But .nvmrc pins v24.0.0, and scripts/node-check.js runs on preinstall and enforces the .nvmrc major:
const expectedVersion = fs.readFileSync(nvmrcPath).toString().trim();
const expectedMajor = semver.major(expectedVersion);
if (!semver.satisfies(process.version, `^${expectedMajor}`)) {
console.error(`Error: Required Node.js major version is ${expectedMajor}, but found ${process.version}. ...`);
process.exit(1);
}
So anyone who follows the README, installs Node 22 and runs yarn is rejected at preinstall before a single dependency is fetched. The README is the first thing a new contributor reads, and following it exactly is what breaks their setup.
The surrounding instructions have the same gap — they say:
nvm install <version>
nvm use <version>
Replace
<version>with the required Node.js version
while never saying that nvm install / nvm use with no argument read .nvmrc on their own, which is the thing that cannot drift.
Also missing: how to run the tests
There is no CONTRIBUTING.md in this repo and the README never says how to run tests. Working out that packages/layout_editor runs node --test src/lib/*.test.js, and that a package's tests have to be run from inside that package (otherwise Babel resolves its root config from the wrong cwd and never finds packages/react/babel.config.js), is currently something each contributor rediscovers by reading package.json files.
Proposed change
- Rewrite the Prerequisites bullet so
.nvmrcis named as the source of truth, shownvm install/nvm usewith no argument, and mention thatyarnverifies this onpreinstalland what the failure looks like. - Add a short Running the tests section covering which packages have tests and how to run them, including the run-from-inside-the-package detail.
This is the exact thing that cost me the most time getting started, so I'd like to write it. Happy to split it into two PRs if you'd prefer the version fix on its own.
- Ngôn ngữ chính
- JavaScript
- Star
- 168
- Fork
- 382
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của RocketChat/EmbeddedChat
-
test: isMessageSequential in layout_editor has no coverageCó thể đã có người làm @ishan-one8 đã nhận 21 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
RocketChat/EmbeddedChat#1373 ·
-
feat : Keep Emoji Picker open for continuous multi-emoji selectionCó thể đã có người làm @iRahul360 đã nhận 58 ngày trước. Đang mởenhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
RocketChat/EmbeddedChat#1360 · 1 bình luận ·
-
Permissions change-detection in useFetchChatData is dead — applyPermissions re-runs on every callCó thể đã có người làm @yash113gadia đã nhận 134 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
RocketChat/EmbeddedChat#1317 ·
-
Only the last emoji shortname in a message is converted to unicodeCó thể đã có người làm @yash113gadia đã nhận 135 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
RocketChat/EmbeddedChat#1315 ·
-
bug: "Last login" shows ambiguous weekday with no date for logins older than todayCó thể đã có người làm @yash113gadia đã nhận 135 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
RocketChat/EmbeddedChat#1313 ·
Tất cả issue của RocketChat/EmbeddedChat
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
nodejs/node#66743 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OWASP/cve-lite-cli#1335 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Channels status: needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
mastra-ai/mastra#27093 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
category/development priority/P1 scope/ci-cd scope/testing status/ready-for-agent type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
QwenLM/qwen-code#14225 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100