microsoft / microsoft/TypeScript-Website
CRITICAL: Can't start the dev server on Node 20 — flowtype ESLint plugin error
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.6k
- Fork
- 1.5k
- Merge medio
- 2g 2h
- PR unite (30g)
- 7
Descrizione
Hey everyone,
I ran into an issue while setting up the project locally and wanted to
flag it as it would affect anyone trying to contribute on Node 20.
When I ran pnpm start, the dev server failed immediately with this error:
Failed to load plugin 'flowtype' declared in 'BaseConfig':
Package subpath './lib/rules/no-unused-expressions' is not defined
by "exports" in eslint-plugin-flowtype
After some digging I found that eslint-config-react-app has a dependency
on eslint-plugin-flowtype which doesn't play nicely with the version of
ESLint being used here when running on Node 20.
Node 20 is the current LTS version so this would affect a lot of people
trying to contribute for the first time.
I've put together a fix in PR #3557 if anyone wants to take a look. It's
a small override that resolves the conflict and gets the dev server running
without affecting any functionality.
My environment:
- Node: v20.20.2
- pnpm: v10.30.3
- OS: macOS (Apple Silicon / arm64)
Happy to provide any more info if needed!
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando la PR #3557 e la configurazione delle dipendenze coinvolta in eslint-config-react-app e eslint-plugin-flowtype. Esegui pnpm start con Node 20 per riprodurre l'errore del plugin; il lavoro è terminato quando il server di sviluppo si avvia senza il fallimento di exports segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- nodejs, typescript
- Ambito
- tooling
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 25/100