Typescript / Eslint throws “Cannot read file tsconfig.json” in every project I start

What worked for me was on the .eslintrc of the folder you are on to add:

parserOptions: {
   project: 'tsconfig.json',
   tsconfigRootDir: __dirname // <-- this did the trick for me
}

Leave a Comment