Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Fresh Windows clone: npm run dev and npm run check-format fail

Đã đóng
#34 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@Chebaleomkar đang làm issue này rồi.

Từ ngày 2/10/2026.

  • #35 của @Chebaleomkar — đang mở

Đá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
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
git, node.js, typescript, vite
Lĩnh vực
build-system

Hướng nghiên cứu

Review package.json scripts, src/server/index.ts, and the proposed PR #35 first. Reproduce with npm ci, npm run dev, and npm run check-format on Windows, then verify that the development server starts and an untouched checkout passes formatting checks.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Environment: Windows 11, Node 24.14.0, npm 11.9.0, Git with the default core.autocrlf=true. App mode: npm run dev.

Steps to reproduce

  1. Clone the repo on Windows and run npm ci.
  2. Run npm run dev.
  3. Run npm run check-format.

Expected: the dev server starts, and the format check passes on an unmodified clone, as it does in CI.

Actual

npm run dev exits immediately, because npm runs scripts through cmd.exe, which can't parse inline NODE_ENV=development:

[0] 'NODE_ENV' is not recognized as an internal or external command,
[0] operable program or batch file.
[0] NODE_ENV=development node --env-file-if-exists=.env --import tsx --watch src/server/index.ts exited with code 1
--> Sending SIGTERM to other processes..
[1] vite exited with code 1

Dropping the variable doesn't help either: src/server/index.ts only allows the Vite origin http://127.0.0.1:5173 when NODE_ENV === 'development'.

npm run check-format fails on an untouched checkout:

[warn] Code style issues found in 121 files. Run Prettier with --write to fix.

There's no .gitattributes, so Git checks files out with CRLF line endings, but Prettier 3 expects endOfLine: "lf". The files in the repository already use LF; only the working tree is affected.

Proposed fix: add .gitattributes with * text=auto eol=lf, and use cross-env in the dev script. I have a PR ready.

Ngôn ngữ chính
TypeScript
Star
2.8k
Fork
344
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
43

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CopilotKit/OpenDots

Tất cả issue của CopilotKit/OpenDots

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.