0

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?

1 Answer 1

0

Try with https://marketplace.cursorapi.com/items/?itemName=Vue.volar

But my honest suggestion is, if you only focus on frontend, Use WebStorm (which is free)

Sign up to request clarification or add additional context in comments.

2 Comments

"Use WebStorm (which is free)" it's only free for non-commercial use. It's absolutely not free for companies and even individuals that will do commercial development.
And I don't know if the link you give would work for VSCode. Opening it gives me a 404 API response. And it's definitely not the VSCode marketplace URL: marketplace.visualstudio.com/vscode If I had to guess, it's the marketplace for the Cursor editor but I've no idea if that's compatible with VSCode.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.