Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rabidkitten opened this issue Jan 5, 2025 · 2 comments

Comments

@rabidkitten
Copy link

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"
    ]
  },
@ljharb
Copy link
Member

ljharb commented Jan 5, 2025

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

Where is that error message coming from?

@rabidkitten
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants