-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing error: ESLint was configured to run on <tsconfigRootDir>/vite.config.ts
using parserOptions.project
:
#13739
Comments
Start a new pull request in StackBlitz Codeflow. |
No error happens when running |
Hello @vaynevayne. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
@vaynevayne I am having the same issue trying to start a new vite react typescript project. |
I also encountered the same problem and created a new react + ts project through vite. |
Having the same issue |
Having the same issue with npm |
This helped me for the time being |
having the same issue inside src folder, another fix is to add |
Same issue but using yarn. |
Having the same issue |
Problem solved I have discovered a new solution !
- "include": ["vite.config.ts"]
+ "include": ["vite.config.ts", ".eslintrc.cjs"] By the way, another thing: If you use node.js in vite
You need to modify it to the following code :
|
you'd better delete src |
Describe the bug
pnpm create vite
react typescript-swc
Reproduction
https://stackblitz.com/edit/vitejs-vite-psmxmw?file=tsconfig.node.json
Steps to reproduce
No response
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: