Closed njbair closed 2 months ago
I have similar problem in my next.js project with eslint flat config.
Faicing the same issue, had to restart VS code.
Seems the issue is upstream but typescript-eslint 8.3.0 might fix the issue https://github.com/microsoft/vscode-eslint/issues/1911
Provide environment information
Describe the bug
Creating new files in the Next.js app produces linting errors in VS Code. Only workaround is restarting the editor.
Link to reproduction
https://github.com/t3-oss/create-t3-turbo
To reproduce
Clone the stock repo using the CLI command from the docs:
Open in VS Code:
Create a new TS file anywhere in the apps/nextjs/src directory:
Save the empty file. Observe the red tilde under the cursor, which provides the following error:
Additional information
Restarting the TS server does not help. Only workaround I can find is restarting VS Code entirely. EDIT: I can also close and re-open the workspace instead of restarting the editor.