Skip to content

Message "Definition for rule 'jsx-a11y/anchor-is-valid' was not found" in React App #1044

Open
@rabidkitten

Description

I am receiving the following message in my running React app "Definition for rule 'jsx-a11y/anchor-is-valid' was not found." I've tried to follow the instructions, but I've been racking my brain trying to figure this out. Here is my package.json (or part of it), which currently includes the config:

"devDependencies": {
    "eslint": "^8.0.0",
    "eslint-config-airbnb": "19.0.4",
    "eslint-config-react-app": "^7.0.1",
    "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
    "cspell": "^8.17.1",
    "eslint-plugin-jsx-a11y": "^6.10.2"
  },
  "eslintConfig": {
    "plugins": ["jsx-a11y"],
    "extends": [
      "airbnb",
      "react-app",
      "react-app/jest",
      "plugin:jsx-a11y/recommended"
    ],
    "ignorePatterns": [
      "setupTests.js",
      "reportWebVitals.js"
    ]
  },

Activity

ljharb

ljharb commented on Jan 5, 2025

@ljharb
Member

CRA is many years dead and deprecated, so i assume you’ve ejected?

Where is that error message coming from?

rabidkitten

rabidkitten commented on Jan 6, 2025

@rabidkitten
Author

Apparently ejecting it fixed the issue with no changes other than that.

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @ljharb@rabidkitten

      Issue actions

        Message "Definition for rule 'jsx-a11y/anchor-is-valid' was not found" in React App · Issue #1044 · jsx-eslint/eslint-plugin-jsx-a11y