microsoft / microsoft/TypeScript-Website
CRITICAL: Can't start the dev server on Node 20 — flowtype ESLint plugin error
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.6k
- Forks
- 1.5k
- Ø Merge
- 2 T. 2 Std.
- Gemergte PRs (30 T.)
- 7
Beschreibung
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!
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Durchsicht von PR #3557 und der beteiligten Dependency-Konfiguration in eslint-config-react-app und eslint-plugin-flowtype. Führe pnpm start unter Node 20 aus, um den Plugin-Fehler zu reproduzieren; als erledigt gilt die Aufgabe, wenn der Dev-Server ohne den gemeldeten exports-Fehler startet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- nodejs, typescript
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 25/100