I'm working on a Vue 3 project using Visual Studio Code on Windows 11.
Even though I have installed the Vue - Official extension (from Vue) and tried reinstalling it, VS Code keeps showing this error in the status bar when I open any .vue file:
Code language not supported or defined
Things I have tried:
Reinstalled VS Code and reset User settings
Installed both “Vue - Official” and “Volar” extensions
Tried setting "editor.defaultFormatter": "Vue.volar" in settings.json
Checked that .vue is being detected (bottom bar shows “vue”)
Verified that Volar is enabled and activated in the workspace
Still, the language server does not recognize .vue files.
Here’s a sample .vue file that shows the error:
<script>
</script>
<template>
<h1>Vue Starter Page</h1>
<div class="main-info">
<p>
This is a sample starter Vue component. This component will be deleted during your exercise.
</p>
</div>
</template>
<style scoped></style>
Here's what I need help with; what might be causing .vue files to be unrecognized despite Volar being installed and active?