-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Log LOC for js syntax errors #6882
Log LOC for js syntax errors #6882
Comments
This looks similar to vitejs/vite#16539 and that seems fixed recently. Which version of Vite do you have? Can you provide a repro? (EDIT: Hmm, maybe not. It looks like Vite issue was only for build) |
Hello @j4k0xb. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
Repro: https://stackblitz.com/edit/vitest-dev-vitest-yuxnbk?file=test%2Fsuite.test.js |
Thanks for reproduction. Probably we can reproduce this on normal Vite SSR and it should be fixed there. Update: I made a Vite SSR repro https://stackblitz.com/edit/vitest-dev-vitest-wpj5mg?file=vite.config.ts |
Clear and concise description of the problem
When a js file has a syntax error, the logs only indicate that it failed to parse but not where.
Suggested solution
Show the same overview as for TS files, or at least the line/column number
Alternative
No response
Additional context
Use-case: simple editors like nano without syntax validation, automatically-generated test files
Validations
The text was updated successfully, but these errors were encountered: