question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[eslint-config-airbnb] can't resolve reference

See original GitHub issue

I see error when running eslint:

can't resolve reference #/definitions/basicConfig from id #
can't resolve reference #/definitions/basicConfigOrBoolean from id #
can't resolve reference #/definitions/basicConfigOrBoolean from id #

Full log after running eslint --debug:

eslint:cli Running on files +0ms
  eslint:glob-util Creating list of files to process. +9ms
  eslint:ignored-paths Looking for ignore file in /Users/stanislavdzhus/Documents/global-locale +3ms
  eslint:ignored-paths Loaded ignore file /Users/stanislavdzhus/Documents/global-locale/.eslintignore +0ms
  eslint:ignored-paths Adding /Users/stanislavdzhus/Documents/global-locale/.eslintignore +0ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/actions/__tests__/actions.test.js +11ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/actions/__tests__/actions.test.js +1ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src/actions/__tests__ +0ms
  eslint:config Using .eslintrc and package.json files +0ms
  eslint:config Loading /Users/stanislavdzhus/Documents/global-locale/.eslintrc +2ms
  eslint:config-file Loading config file: /Users/stanislavdzhus/Documents/global-locale/.eslintrc +0ms
  eslint:config-file Loading airbnb +120ms
  eslint:config-file Attempting to resolve eslint-config-airbnb +0ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/index.js +1ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/rules/react-a11y.js +4ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/rules/react-a11y.js +0ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/rules/react.js +567ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/rules/react.js +0ms
can't resolve reference #/definitions/basicConfig from id #
can't resolve reference #/definitions/basicConfigOrBoolean from id #
can't resolve reference #/definitions/basicConfigOrBoolean from id #
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/strict.js +69ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/strict.js +0ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/index.js +21ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/index.js +1ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/imports.js +2ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/imports.js +0ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/es6.js +314ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/es6.js +0ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/variables.js +36ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/variables.js +0ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/style.js +19ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/style.js +1ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/node.js +374ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/node.js +1ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/errors.js +3ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/errors.js +0ms
  eslint:config-file Loading /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/best-practices.js +39ms
  eslint:config-file Loading JS config file: /Users/stanislavdzhus/Documents/global-locale/node_modules/eslint-config-airbnb/node_modules/eslint-config-airbnb-base/rules/best-practices.js +0ms
  eslint:config Using /Users/stanislavdzhus/Documents/global-locale/.eslintrc +94ms
  eslint:config-ops Using config from partial cache +1ms
  eslint:config-ops Apply environment settings to config +2ms
  eslint:config-ops Creating config for environment node +1ms
  eslint:config-ops Creating config for environment es6 +0ms
  eslint:config-ops Creating config for environment browser +0ms
  eslint:config-ops Creating config for environment jest +1ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/actions/actionCreators.js +753ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/actions/actionCreators.js +0ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src/actions +0ms
  eslint:config Using .eslintrc and package.json files +0ms
  eslint:config Using config from cache +0ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/actions/actionTypes.js +65ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/actions/actionTypes.js +0ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src/actions +0ms
  eslint:config Using .eslintrc and package.json files +0ms
  eslint:config Using config from cache +0ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/actions/index.js +50ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/actions/index.js +0ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src/actions +0ms
  eslint:config Using .eslintrc and package.json files +1ms
  eslint:config Using config from cache +0ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/index.js +38ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/index.js +1ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src +0ms
  eslint:config Using .eslintrc and package.json files +0ms
  eslint:config Using config from cache +0ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/store/reducer/__tests__/reducer.test.js +41ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/store/reducer/__tests__/reducer.test.js +1ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src/store/reducer/__tests__ +0ms
  eslint:config Using .eslintrc and package.json files +0ms
  eslint:config Using config from cache +1ms
  eslint:cli-engine Processing /Users/stanislavdzhus/Documents/global-locale/src/store/reducer/index.js +101ms
  eslint:cli-engine Linting /Users/stanislavdzhus/Documents/global-locale/src/store/reducer/index.js +0ms
  eslint:config Constructing config file hierarchy for /Users/stanislavdzhus/Documents/global-locale/src/store/reducer +0ms
  eslint:config Using .eslintrc and package.json files +0ms
  eslint:config Using config from cache +1ms
  eslint:cli-engine Linting complete in: 2789ms +47ms

My devDependencies:

{
    "eslint": "^4.2.0",
    "eslint-config-airbnb": "^15.0.2",
    "eslint-plugin-import": "^2.7.0",
    "eslint-plugin-jest": "^20.0.3",
    "eslint-plugin-jsx-a11y": "^6.0.2",
    "eslint-plugin-react": "^7.1.0",
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

32reactions
ljharbcommented, Jul 12, 2017

Those are warnings from eslint-plugin-react, that don’t cause eslint to exit nonzero and that you can safely disregard.

It was fixed in https://github.com/yannickcr/eslint-plugin-react/pull/1292, but is not yet released.

9reactions
lijunlecommented, Jul 24, 2017

Is the fixed released? I still see the warning now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

`can't resolve reference` eslint warning with react preset
This error was caused by eslint-plugin-react package (which I found out following this airbnb config issue).
Read more >
eslint-config-airbnb-typescript - npm
I get this error when running ESLint: "The file must be included in at least one of the projects provided" ... This means...
Read more >
ESLint | WebStorm Documentation - JetBrains
To configure ESLint automatically in the current project, open the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Languages & Frameworks | ...
Read more >
eslint/eslint - Gitter
already installed with npm with -g eslint-config-airbnb ... Hi guys, i'm trying to use eslint with sublime text 3 on Ubuntu 19.04 and...
Read more >
[eslint] failed to load config "airbnb-typescript" to extend from.
To solve your error message, you can simply remove the entry or replace it with a proper shared config (e.g. "eslint-config-airbnb" ). Make...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found