Sublime Forum

Cannot read config file - Sublime Text 3

#1

I am getting an error like this:

SublimeLinter: #1 eslint index.js ERROR:

Cannot read config file: <filepath to an .eslintrc.js file (which IS there)>
Error: ENOENT: no such file or directory, open ‘./.prettierrc’ (also there)
Error: Cannot read config file: <filepath to an .eslintrc.js file (which IS there)>
Error: ENOENT: no such file or directory, open ‘./.prettierrc’
at Object.openSync (fs.js:438:3)
at Object.readFileSync (fs.js:343:35)
at Object. ( <filepath to an .eslintrc.js file (which IS there)>.eslintrc.js:3:39)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)

I have no problem with my project but this is annoying as it pops up every time I open it and I can’t close out of it.

0 Likes

#2

That’s a problem with the sublimelinter-eslint package which for some reason can’t read your config files. You should be able to close the panel with them with Esc, but it is likely it will reopen until either the problem is fixed or you disable the package/litter.

0 Likes

#3

Run eslint --init in the folder containing the project.

0 Likes