Solvedjavascript Failed to load config "airbnb-base" to extend from.

I'm experiencing this after updating all my dependencies to their newest versions, i.e:

my package.json

"devDependencies": {
    "@typescript-eslint/eslint-plugin": "^2.24.0",
    "@typescript-eslint/parser": "^2.24.0",
    "eslint": "^6.8.0",
    "eslint-config-airbnb-base": "^14.1.0",
    "eslint-config-prettier": "^6.0.1",
    "eslint-plugin-import": "^2.20.1",
    "eslint-plugin-prettier": "^3.1.2",
    "eslint-plugin-promise": "^4.2.1",
    "prettier": "^1.19.1",
    "typescript": "^3.8.3"
  },

Output from ESlint in the output tab:

[Info  - 2:44:15 AM] ESLint server stopped.
[Info  - 2:44:15 AM] ESLint server running in node v12.8.1
[Info  - 2:44:15 AM] ESLint server is running.
[Info  - 2:44:16 AM] ESLint library loaded from: /Users/bartekpacia/dev/node/discover-rudy-functions/functions/node_modules/eslint/lib/api.js
[Error - 2:44:16 AM] ESLint stack trace:
[Error - 2:44:16 AM] Error: Failed to load config "airbnb-base" to extend from.
Referenced from: /Users/bartekpacia/dev/node/discover-rudy-functions/.eslintrc.json
    at configMissingError (/Users/bartekpacia/dev/node/discover-rudy-functions/functions/node_modules/eslint/lib/cli-engine/config-array-factory.js:265:9)
    at ConfigArrayFactory._loadExtendedShareableConfig (/Users/bartekpacia/dev/node/discover-rudy-functions/functions/node_modules/eslint/lib/cli-engine/config-array-factory.js:826:23)
    at ConfigArrayFactory._loadExtends (/Users/bartekpacia/dev/node/discover-rudy-functions/functions/node_modules/eslint/lib/cli-engine/config-array-factory.js:731:25)
    at ConfigArrayFactory._normalizeObjectConfigDataBody (/Users/bartekpacia/dev/node/discover-rudy-functions/functions/node_modules/eslint/lib/cli-engine/config-array-factory.js:660:25)
    at _normalizeObjectConfigDataBody.next (<anonymous>)
    at ConfigArrayFactory._normalizeObjectConfigData (/Users/bartekpacia/dev/node/discover-rudy-functions/functions/node_modules/eslint/lib/cli-engine/config-array-factory.js:596:20)
    at _normalizeObjectConfigData.next (<anonymous>)
    at createConfigArray (/Users/bartekpacia/dev/node/discover-rudy-functions/functions/node_modules/eslint/lib/cli-engine/config-array-factory.js:340:25)
    at ConfigArrayFactory.loadInDirectory (/Users/bartekpacia/dev/node/discover-rudy-functions/functions/node_modules/eslint/lib/cli-engine/config-array-factory.js:433:16)
    at CascadingConfigArrayFactory._loadConfigInAncestors (/Users/bartekpacia/dev/node/discover-rudy-functions/functions/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:328:46)

My eslintrc.json:

"parser": "@typescript-eslint/parser",
  "parserOptions": {
    "ecmaVersion": 2017
  },
  "extends": [
    "airbnb-base",
    "plugin:@typescript-eslint/recommended",
    "prettier/@typescript-eslint",
    "plugin:prettier/recommended",
    "plugin:import/errors"
  ],
  "plugins": ["@typescript-eslint", "prettier", "promise", "import"],

I don't have ESLint installed globally, only locally.
Everything seems to be installed correctly, but still, I can't get it to work:c

any tips?

12 Answers

✔️Accepted Answer

I had similar issue on a react app

Failed to load config "airbnb" to extend from.
Referenced from: /usr/src/.eslintrc

and this fixed it!

npm install -g install-peerdeps
install-peerdeps --dev eslint-config-airbnb

I think

install-peerdeps --dev eslint-config-airbnb-base

Will fix it for you too

More Issues: