-
Notifications
You must be signed in to change notification settings - Fork 91
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 reports 0 erros #382
Comments
Ah I see now. The project generated by |
I am still confused, I also use react-ts template, where should I set the |
After adding |
Solution: vite.config.ts file plugins: [
checker({
typescript: { buildMode: true },
}),
] |
If you're starting a new Vite project, the default export default defineConfig({
plugins: [
react(),
checker({
typescript: {
tsconfigPath: './tsconfig.app.json'
},
})
],
}) |
Describe the bug
After bootstrapping a Vite react-ts project and following vite-plugin-checker's "Getting Started" to set up Typescript checker, the checker seems to execute Typescript, but for some reason it doesn't detect any errors. I.e. running
npm run build
fails due to type errors, butnpm run dev
outputs [TypeScript] Found 0 errors. Watching for file changes.I using WSL on Windows - maybe this is what matters?
Reproduction
npm create vite@latest my-react-app -- --template react-ts
cd my-react-app
npm i vite-plugin-checker -D
typescript: true
src/App.tsx
npm run dev
Expected behavior
Expected result: same error as when executing
npm run build
.Actual result: no errors detected.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: