resonatecoop / stream

Monorepo for Resonate Coop player
https://stream.resonate.coop
GNU General Public License v3.0
171 stars 24 forks source link

fixed Parsing error: Cannot read file .../tsconfig.json .eslint error… #273

Closed mattburnett-repo closed 2 years ago

mattburnett-repo commented 2 years ago

Using VSCode 1.71

After cloning and npm install, got problems when opening files in @types folder. Short version: [Parsing error: Cannot read file '.../tsconfig.json'.eslint] Created red squigglies in all affected files.

Not a critical problem, but definitely a distraction. Something that shouldn't be a problem.

Fixed by adding 'tsconfigRootDir: __dirname,' to 'parserOptions' block of .eslintrc.js file

More reference here -> (https://stackoverflow.com/questions/64933543/parsing-error-cannot-read-file-tsconfig-json-eslint)

peterklingelhofer commented 2 years ago

Tested with and without these changes, and I can't reproduce the error, but things seem to work fine with the changes as well(tried this on a fresh install of Ubuntu after just pulling down this repo). @simonv3, wanna check this one out as well?