You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working on a vue project created using vite:
Whenever i save a file with an error the error doesn't immediately show in console. Only upon refreshing the browser page it shows.
In the Vue language-tools somebody told me to move this here:
Open terminal and create a new project:
npm create vue@latest
Add Typescript when asked for it
Run npm install in project directory
Start dev server by running: npm run dev
Purposefully generate error in code in my example i typed into Homeview.vue and save the file:
<script setup lang="ts">
import TheWelcome from '../components/TheWelcome.vue'
this is an error generated on purpose ; = ";";
</script>
6.Now the console should not show any error
Upon opening the application in the browser the error gets displayed (only in browser)
Only upon page refresh the terminal now also displays the error
System Info
Vue - Official extension or vue-tsc version
v2.0.21
VSCode version
1.90.0
Vue version
3.4.21
TypeScript version
5.4.5
System Info
OS: Ubuntu 22.04.4 LTS
IDE: VSCode and Nvim
Browser: Chrome Version 125.0.6422.141
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
When working on a vue project created using vite:
Whenever i save a file with an error the error doesn't immediately show in console. Only upon refreshing the browser page it shows.
In the Vue language-tools somebody told me to move this here:
Reproduction
https://stackblitz.com/edit/vitejs-vite-kubirs?file=counter.js&terminal=dev
Steps to reproduce
npm create vue@latest
6.Now the console should not show any error
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: