-
Notifications
You must be signed in to change notification settings - Fork 92
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
Typescript check crashing vite serve #401
Comments
We're also getting this, but with webpack Seems to be unrelated to vite and probably related to something in typescript 5.3+ |
I'm seeing the same issue with vite in both typescript 5.6.2 and 5.2.2 |
Also happening with typescript 5.7.2 and I haven't been able to find a solution for a long time. |
I've had this in my project for a while, although I don't know the root cause, the behaviour seems to be some sort of cache issue, because I can fix it by doing the following:
Hopefully this helps as a temp fix even if it doesn't solve the root problem... Nevertheless it's really annoying having to do this multiple times a day just to be able to run a type check :( |
Describe the bug
There are no typescript errors but every time I start my vite server, it crashes after a few hmr updates. All I see is this:
The getOptionalType function crashes on line
Debug.assert(strictNullChecks)
because I have strict: false in my tsconfig.Reproduction
I haven't yet narrowed down a way to reproduce the issue because this is a nx monorepo. I will add it if I find a way. Here is the --showConfig output.
Expected behavior
No crash
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: