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

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

オープン
#34 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@Chebaleomkar がすでに取り組んでいます。

2026年10月2日 から。

  • #35 @Chebaleomkar による — オープン

評価

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

調査の方向性

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.

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

説明

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.

主要言語
TypeScript
スター
2.8k
フォーク
344
平均マージ
7時間 8分
マージ済み PR(30日)
10

環境構築

はじめの一歩

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

CopilotKit/OpenDots のほかの issue

CopilotKit/OpenDots の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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