vitejs / vite-plugin-vue2

Vite plugin for Vue 2.7
MIT License
551 stars 48 forks source link

Components silently die after runtime errors #53

Closed FossPrime closed 1 year ago

FossPrime commented 2 years ago

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%3AL18

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.

FossPrime commented 1 year ago

This was caused by a Chrome extension https://chrome.google.com/webstore/detail/chrome-js-error-icon/mnjomdibnloobkbgdaaplldfihfhpnbm https://chrome.google.com/webstore/detail/chrome-js-error-icon/mnjomdibnloobkbgdaaplldfihfhpnbm