This component silently fails if any function inside throws. In Vue 3, the component correctly delivers errors to the console and vite.
But in Vue 2, Vite runs as if there is nothing wrong, performing HMR updates and silently dropping components without warning devs about runtime errors.
Minimal repro: https://stackblitz.com/edit/bug-runtime-throw-test-vite?file=src%2FApp.vue%3AL13 Repro with
./playground
: https://stackblitz.com/edit/github-dzf4en?file=playground%2Ftest-component%2FTestComponent.vue%3AL18This component silently fails if any function inside throws. In Vue 3, the component correctly delivers errors to the console and vite.
But in Vue 2, Vite runs as if there is nothing wrong, performing HMR updates and silently dropping components without warning devs about runtime errors.