<timestamp>Wednesday, Aug 5, 2026, 11:06 AM (UTC+2)</timestamp> For the code present, we…
- User
Wednesday, Aug 5, 2026, 11:06 AM (UTC+2)
For the code present, we get this error:
codeParsing error: No tsconfigRootDir was set, and multiple candidate TSConfigRootDirs are present: - /Users/blef/Work/naolabs/chat - /Users/blef/Work/naolabs/chat/apps/frontend You'll need to explicitly set tsconfigRootDir in your parser options. See: https://tseslint.com/parser-tsconfigrootdirFix it, verify, and then give a concise explanation.
idk i have this error on almost all the js files
- Assistant
I'll look at the ESLint/TypeScript config setup causing the
tsconfigRootDirerror across JS files. - Assistant
CLI lint doesn't show that error — it's likely the editor ESLint multi-config detection. Checking how typescript-eslint resolves this and whether the root config needs
tsconfigRootDir. - Assistant
Root cause: importing the root ESLint config from
apps/frontendregisters twotsconfigRootDircandidates in one process. SettingtsconfigRootDirexplicitly on the root config fixes it. - Assistant
Fixed. Restart the ESLint server in Cursor so it picks up the config (
Cmd+Shift+P→ “ESLint: Restart ESLint Server”).What was wrong:
apps/frontend(and backend) import the rooteslint.config.js. Loading both in one ESLint process registers two candidate roots (chatandapps/frontend). typescript-eslint then refuses to guesstsconfigRootDirand reports a parse error on basically every file in the editor.What we changed:
- Set
parserOptions.tsconfigRootDir: import.meta.dirnamein the rooteslint.config.jsso inference isn’t needed. - Set
"eslint.workingDirectories": [{ "mode": "auto" }]so the IDE uses the nearest package config.
CLI lint for shared/frontend/backend runs clean of that parse error.
- Set
- User
For the code present, we get this error:
codeParsing error: No tsconfigRootDir was set, and multiple candidate TSConfigRootDirs are present: - /Users/blef/Work/naolabs/chat - /Users/blef/Work/naolabs/chat/apps/frontend You'll need to explicitly set tsconfigRootDir in your parser options. See: https://tseslint.com/parser-tsconfigrootdirFix it, verify, and then give a concise explanation.
idk i have this error on almost all the js files