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

Error: Failed to load config "xo-typescript" to extend from. #454

Closed
fregante opened this issue Apr 5, 2020 · 2 comments
Closed

Error: Failed to load config "xo-typescript" to extend from. #454

fregante opened this issue Apr 5, 2020 · 2 comments

Comments

@fregante
Copy link
Member

fregante commented Apr 5, 2020

I'm having the same issue reported by Sindre here: #426 (comment)

Error: Failed to load config "xo-typescript" to extend from.
Referenced from: BaseConfig
    at configMissingError (./node_modules/eslint/lib/cli-engine/config-array-factory.js:265:9)
    at ConfigArrayFactory._loadExtendedShareableConfig (./node_modules/eslint/lib/cli-engine/config-array-factory.js:826:23)
    at ConfigArrayFactory._loadExtends (./node_modules/eslint/lib/cli-engine/config-array-factory.js:731:25)
    at ConfigArrayFactory._normalizeObjectConfigDataBody (./node_modules/eslint/lib/cli-engine/config-array-factory.js:660:25)
    at _normalizeObjectConfigDataBody.next (<anonymous>)
    at ConfigArrayFactory._normalizeObjectConfigData (./node_modules/eslint/lib/cli-engine/config-array-factory.js:596:20)
    at _normalizeObjectConfigData.next (<anonymous>)
    at createConfigArray (./node_modules/eslint/lib/cli-engine/config-array-factory.js:340:25)
    at ConfigArrayFactory.create (./node_modules/eslint/lib/cli-engine/config-array-factory.js:395:16)
    at createBaseConfigArray (./node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:86:48)

This also happens after clearing ~/.xo-cache and rm -rf node_modules package-lock.json && npm i

Config

{
	"xo": {
		"envs": [
			"browser"
		],
		"rules": {
			"@typescript-eslint/no-unnecessary-type-assertion": "off"
		}
	},
	"devDependencies": {
		"@sindresorhus/tsconfig": "^0.7.0",
		"browserify": "^16.2.2",
		"esmify": "^2.1.1",
		"npm-run-all": "^4.1.3",
		"tape": "^4.10.1",
		"tape-run": "^5.0.0",
		"typescript": "^3.8.3",
		"xo": "^0.28.3"
	}
}

Versions

macOS 10.15
Node v13.8.0
npm 6.13.6
xo 0.28.3

@fregante
Copy link
Member Author

fregante commented Apr 5, 2020

This fixed it, but it shouldn't be necessary:

npm i -D eslint-config-xo-typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin

@fregante
Copy link
Member Author

fregante commented Apr 5, 2020

And now I can no longer reproduce. Neat.

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

1 participant