Wednesday 27 September 2023

Vite is ignoring compiler errors until the file is used at runtime

For some reason vite is letting me login to my app and do whatever, until I navigate to a page that makes use of the file with the compilation error. At that point it refuses to render and throws the error in the console.

I also do not see the errors in the terminal output from vite. However, my linter AND the problems tab in VSCode both see the error.

enter image description here

Any idea how to fix vite to revert back to the default behaviour where the entire app must compile and only then the website renders?

Thanks



from Vite is ignoring compiler errors until the file is used at runtime

No comments:

Post a Comment