Skip to content

fix: resolve flowtype ESLint plugin error blocking dev setup on Node 20#3557

Open
lavuchandu169 wants to merge 1 commit intomicrosoft:v2from
lavuchandu169:fix/eslint-flowtype-dev-setup
Open

fix: resolve flowtype ESLint plugin error blocking dev setup on Node 20#3557
lavuchandu169 wants to merge 1 commit intomicrosoft:v2from
lavuchandu169:fix/eslint-flowtype-dev-setup

Conversation

@lavuchandu169
Copy link
Copy Markdown

Problem

When setting up the project locally on Node 20, running pnpm start fails immediately with:

Failed to load plugin 'flowtype' declared in 'BaseConfig':
Package subpath './lib/rules/no-unused-expressions' is not defined
by "exports" in eslint-plugin-flowtype

This completely blocks the development server from starting, making it
impossible to contribute locally on Node 20.

Root Cause

The eslint-config-react-app package declares a dependency on
eslint-plugin-flowtype, which is incompatible with the version of
ESLint used in this project on Node 20.

Fix

Added a local .eslintrc.js override in packages/typescriptlang-org
that resets the conflicting ESLint configuration, allowing the dev
server to start successfully.

Environment Tested

  • Node: v20.20.2
  • pnpm: v10.30.3
  • OS: macOS (Apple Silicon / arm64)

Result

  • pnpm start completes successfully
  • Site loads correctly at http://localhost:8000
  • No functionality affected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants