Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Chiusa
#34 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@Chebaleomkar ci sta già lavorando.

Dal 2/10/2026.

  • #35 di @Chebaleomkar — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
git, node.js, typescript, vite
Ambito
build-system

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
2.8k
Fork
344
Merge medio
1g 8h
PR unite (30g)
33

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CopilotKit/OpenDots

Tutte le issue di CopilotKit/OpenDots

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.