Checking for TypeScript errors in Next.JS can only be done with npm run build
(or yarn build
).
Unfortunately, running npm run dev
won't display TypeScript errors, which is quite inconvenient as it would be better to have them visible in the Terminal during development.
Is there a way to configure npm run dev
to show TS errors?
Just a heads up - I strongly dislike relying on my IDE for handling TS errors. It's just a personal preference of mine. I find it more convenient to view them in the terminal alongside other error messages.