Skip to content

Could not find "no-comment-textnodes" in plugin "react" #769

@nyomansunima

Description

@nyomansunima

Describe the bug

When update all the package including the eslint, and other dependencies, the config cannot find the "no-comment-textnodes" from the react-eslint-config.

This happen when update the @eslint-react/eslint-plugin to version @2.

eslint . --fix

Oops! Something went wrong! :(

ESLint: 9.37.0

TypeError: Key "rules": Key "react/no-comment-textnodes": Could not find "no-comment-textnodes" in plugin "react".
    at throwRuleNotFoundError (/home/runner/work/official-site/official-site/node_modules/eslint/lib/config/config.js:100:16)
    at Config.validateRulesConfig (/home/runner/work/official-site/official-site/node_modules/eslint/lib/config/config.js:603:5)
    at new Config (/home/runner/work/official-site/official-site/node_modules/eslint/lib/config/config.js:484:9)
    at [finalizeConfig] (/home/runner/work/official-site/official-site/node_modules/eslint/lib/config/flat-config-array.js:212:10)
    at FlatConfigArray.getConfigWithStatus (/home/runner/work/official-site/official-site/node_modules/@eslint/config-array/dist/cjs/index.cjs:1404:55)
    at FlatConfigArray.getConfig (/home/runner/work/official-site/official-site/node_modules/@eslint/config-array/dist/cjs/index.cjs:1422:15)
    at entryFilter (/home/runner/work/official-site/official-site/node_modules/eslint/lib/eslint/eslint-helpers.js:323:27)
    at async NodeHfs.<anonymous> (file:///home/runner/work/official-site/official-site/node_modules/@humanfs/core/src/hfs.js:574:24)
    at async NodeHfs.walk (file:///home/runner/work/official-site/official-site/node_modules/@humanfs/core/src/hfs.js:614:3)
    at async globSearch (/home/runner/work/official-site/official-site/node_modules/eslint/lib/eslint/eslint-helpers.js:364:20)
    at async Promise.allSettled (index 0)
    at async globMultiSearch (/home/runner/work/official-site/official-site/node_modules/eslint/lib/eslint/eslint-helpers.js:455:18)
    at async Promise.all (index 0)
    at async findFiles (/home/runner/work/official-site/official-site/node_modules/eslint/lib/eslint/eslint-helpers.js:635:25)
    at async ESLint.lintFiles (/home/runner/work/official-site/official-site/node_modules/eslint/lib/eslint/eslint.js:998:21)
    at async Object.execute (/home/runner/work/official-site/official-site/node_modules/eslint/lib/cli.js:428:14)
    at async main (/home/runner/work/official-site/official-site/node_modules/eslint/bin/eslint.js:175:19)

Reproduction

Update the package to the latest, and run the lint

System Info

System:
    OS: macOS 26.0.1
    CPU: (8) arm64 Apple M1
    Memory: 475.19 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.10.0 - /opt/homebrew/bin/node
    npm: 11.6.0 - /opt/homebrew/bin/npm
    bun: 1.3.0 - /opt/homebrew/bin/bun
    Deno: 2.5.4 - /opt/homebrew/bin/deno
  Browsers:
    Brave Browser: 141.1.83.118
    Safari: 26.0.1

Used Package Manager

bun

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions