Error: Failed to load config "standard" to extend from.
See original GitHub issueWhat version of this package are you using?
5.0.0 (standard 14.3.1)
What operating system, Node.js, and npm version?
Manjaro KDE, Node v13.5.0, npm v6.13.4
What happened?
- Installed standardx with
sudo npm install standardx --global - Executed
standardx --fixin my local project folder. - The program terminated with this error:
standardx: Unexpected linter output:
Error: Failed to load config "standard" to extend from.
Referenced from: BaseConfig
at configMissingError (/usr/lib/node_modules/standardx/node_modules/eslint/lib/cli-engine/config-array-factory.js:233:9)
at ConfigArrayFactory._loadExtendedShareableConfig (/usr/lib/node_modules/standardx/node_modules/eslint/lib/cli-engine/config-array-factory.js:712:23)
at ConfigArrayFactory._loadExtends (/usr/lib/node_modules/standardx/node_modules/eslint/lib/cli-engine/config-array-factory.js:617:25)
at ConfigArrayFactory._normalizeObjectConfigDataBody (/usr/lib/node_modules/standardx/node_modules/eslint/lib/cli-engine/config-array-factory.js:547:25)
at _normalizeObjectConfigDataBody.next (<anonymous>)
at ConfigArrayFactory._normalizeObjectConfigData (/usr/lib/node_modules/standardx/node_modules/eslint/lib/cli-engine/config-array-factory.js:491:20)
at _normalizeObjectConfigData.next (<anonymous>)
at createConfigArray (/usr/lib/node_modules/standardx/node_modules/eslint/lib/cli-engine/config-array-factory.js:307:25)
at ConfigArrayFactory.create (/usr/lib/node_modules/standardx/node_modules/eslint/lib/cli-engine/config-array-factory.js:362:16)
at createBaseConfigArray (/usr/lib/node_modules/standardx/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:84:48)
If you think this is a bug in `standardx`, open an issue: https://github.com/standard/standardx/issues
What did you expect to happen?
To run the autofixer.
Are you willing to submit a pull request to fix this bug?
I’m not familiar with the code, so I don’t think I could.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:24
- Comments:24 (3 by maintainers)
Top Results From Across the Web
eslint command fails on CI Server with error "ESLint couldn't ...
it seems that eslint-config-standard-with-typescript isn't installed. Try this: npm install --save-dev eslint@7 eslint-plugin-promise@4 ...
Read more >[eslint] failed to load config "standard" to extend from. - You.com
Everything is working fine except this. Every time I made changes and save them it shows me an error.
Read more >eslint/eslint - Gitter
Error : Failed to load plugin 'import' declared in '.eslintrc.json » eslint-config-standard': ... ESLint couldn't find the config "standard" to extend from.
Read more >eslint-config-standard - npm
You probably want to use standard instead :) npm install eslint-config-standard. Usage. Shareable configs are designed to work with the extends ...
Read more >Configuration Files - ESLint - Pluggable JavaScript Linter
files, make sure to use --no-eslintrc along with the --config flag. ... extends: standard rules: comma-dangle: - error - always no-empty: warn.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I got this issue today and solved it by installing the following packages:
npm install eslint --save-dev npm install eslint-config-standard --save-dev npm install eslint-config-standard-jsx --save-dev npm install eslint-plugin-react --save-dev npm install eslint-plugin-import --save-dev npm install eslint-plugin-node --save-dev npm install eslint-plugin-promise --save-dev npm install eslint-plugin-standard --save-dev
@ManuelFte @indigoviolet In the meantime of that wrong configuration of eslint, I could resolve fallback of version
3.0.0of standardx.That’s all
Extra tip:
I was having some problems with paths, etc… so I ended to add a script to my
package.jsonfile.and finally, just be sure that you are importing the rest of configurations that are described here
That’s it, then It’s working as I expected. 😃