ESLint cannot find “tsconfig.json”

Sameer Gurung
Fuzzy Code
Published in
Mar 26, 2024

I’ve encountered this error in my monorepo project where I have sub folders ‘app’ and ‘api’. This doesn’t affect the development and build, but is a paint to our eye and other errors can hide underneath it as well.

--project-folder
--app
--api

You might be have an error displayed of not finding tsconfig.json . This is the code editor not finding the file. To fix this, (if you are using Visual Studio Code), please add the following settings for your project level configuration.

Search eslint in settings
Changing the current working directory
  • Setting changeProcessCWD to true instructs VSCode to treat the specified directory as the current working directory for ESLint operations.

You might have to add similar config depending upon your code editor.

--

--

Sameer Gurung
Fuzzy Code

A Software Engineer, who also turns to be a JavaScript enthusiast. Currently working with NodeJs, Angular, Ionic and AWS. Catch me: https://smrgrg.com