Vite doesn't show TypeScript errors/warning until build time #12870
-
While vite is awesome in terms of speed and disk space, I ran into a bit of a problem with it in my My
How do I get vite to show all TypeScript and ESLint errors during development? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
The documentation explains how to do this pretty clearly: https://vitejs.dev/guide/features.html#transpile-only |
Beta Was this translation helpful? Give feedback.
-
It's worth pointing out that when used as directed, vite doesn't detect typescript errors even at build time The documentation says "When it is time to deploy your app for production, simply run the vite build command" but this ignores typescript errors too. The OP has used |
Beta Was this translation helpful? Give feedback.
-
vite-plugin-checker works for my main TypeScript app in my monorepo. However, when I make a change to a local package dependency while developing, it does not show type errors... Anyone have a similar issue? I was trying to avoid starting a watch process for the packages being worked on, considering they can have multiple local package dependencies as well. |
Beta Was this translation helpful? Give feedback.
The documentation explains how to do this pretty clearly: https://vitejs.dev/guide/features.html#transpile-only