You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: Failed to load config "standard" to extend from. #27
Installed standardx with sudo npm install standardx --global
Executed standardx --fix in 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.
I tried with another a new project and am hitting the same problem. So is it the case that no one is using latest standardx to add typescript support to standard?
Reacted by Jason Ormand, Michael Rodov and Ali Aftab Muhammad
Reacted by Kamesh, Kevin Hendry, Masih Jahangiri, Michael Bargury, zanyzhao, Rafael Henrique Capati, Glen Young, Diego Silva, Kacper Kapuściak, Stanislav and 4 more
Reacted by Bartosz Solowiej, Alex, Malisa, Michael Rodov, Rishabh Parekh, Luis Marsiglia, Bryan Macias, Felipe M. Santos, Jikke Wisserhof, josumonk and 1 more
I got this issue today and solved it by installing the following packages:
...
This worked for me, but I didn't need all these packages (it's dependent on your setup). Running ./node_modules/.bin/eslint <SOME_FILE>
will cause it to tell you what libraries you are missing (although you will have to do this multiple times.
In my case, it was resolved by removing all these packages and restart VSCode.
The problem was from 'eslint' package itself. Probably collided with 'standardx' because both are linters.
Activity
indigoviolet commentedon Jan 19, 2020
ping? I'm also seeing this, with a similar setup.
The
standardtool itself works without such an error.Jero786 commentedon Mar 1, 2020
@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. :)
Raynos commentedon May 21, 2020
This is still an issue, we should look into fixing this with the eslint @ 7 upgrade. I think eslint @ 7 is supposed to fix this,
cc @LinusU who's got the eslint7 PR.
JeffSpies commentedon May 26, 2020
Still an issue for me:
Raynos commentedon May 26, 2020
I think resolve plugins relative to is supposed to help with this maybe :(
JeffSpies commentedon Jul 5, 2020
I tried with another a new project and am hitting the same problem. So is it the case that no one is using latest standardx to add typescript support to standard?
Raynos commentedon Jul 6, 2020
I used standardx 3.0.0 because reasons :(
UrzaUrza commentedon Aug 14, 2020
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
APWHY commentedon Aug 31, 2020
This worked for me, but I didn't need all these packages (it's dependent on your setup). Running
./node_modules/.bin/eslint <SOME_FILE>will cause it to tell you what libraries you are missing (although you will have to do this multiple times.
Switch to standard style formatting, but using prettier because stand…
Switch to standard style formatting, but using prettier because stand…
zunpitchk commentedon Nov 4, 2020
In my case, it was resolved by removing all these packages and restart VSCode.
The problem was from 'eslint' package itself. Probably collided with 'standardx' because both are linters.
7 remaining items
feross commentedon Nov 4, 2020
Thanks for checking, @Raynos. I can't reproduce this issue on my machine. A PR that fixes this would be really helpful to get this resolved.
tcurdt commentedon May 17, 2021
Also ended up installing thse packages that made it work (although I don't need most of them - in theory)
tcurdt commentedon May 19, 2021
Any suggestion how to fix this without installing all those
eslintpackages manually?Happy to help debugging this.
tcurdt commentedon May 19, 2021
I am running out of ideas so I've created a testcase to reproduce it.
testcase.zip
resolve eslint config and plugins manually
Flet commentedon Jun 15, 2021
Hello! 👋
I was able to get something working that resolves this issue in PR #38.
Sanity checks by interested folks here would be cool!
KnifeFed commentedon Oct 25, 2021
Any news on this? Is it at all possible to have a working global installation of standardx?
fix: fix random eslint-errors when code-formating
fix: fix random eslint-errors when code-formating
fviazzi commentedon Jan 17, 2022
In my case, using PR #38 and removing the setting
standard.workingDirectoriesfrom my vsCode config file did the trickthorger commentedon Jul 7, 2023
Any news on it? I just installed 7.0.0 and I'm getting:
npx standardx
standardx: Unexpected linter output:
Error: Failed to load config "standard" to extend from.
Referenced from: BaseConfig