Skip to content

Bug: VLS fails on Windows with legacy compatibility setup #5738

@curlykay

Description

@curlykay

Vue - Official extension or vue-tsc version

3.1.3

VSCode version

1.105.1

Vue version

2.7.16

TypeScript version

5.9.3

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 AMD Ryzen 5 5500U with Radeon Graphics
    Memory: 8.64 GB / 15.34 GB
  Binaries:
    Node: 22.21.0 - C:\Users\AX\AppData\Local\mise\installs\node\22.21.0\node.EXE
    npm: 10.9.4 - C:\Users\AX\AppData\Local\mise\installs\node\22.21.0\npm.CMD
    pnpm: 10.19.0 - C:\Users\AX\AppData\Local\mise\installs\pnpm\10.19.0\pnpm.EXE
  Browsers:
    Edge: Chromium (141.0.3537.85)
    Internet Explorer: 11.0.19041.5794

package.json dependencies

Steps to reproduce

  1. Clone the repository on a Windows machine: git clone https://github.com/curlykay/issue-vls-vue2.git
  2. Open the cloned project in Visual Studio Code.
  3. Ensure the Vue(Official) extension is installed and enabled.
  4. Open the file src/App.vue.
  5. Wait for the @vue/language-server (VLS) to initialize.

What is expected?

The @vue/language-server should initialize successfully without any errors. The language features for Vue 2, such as syntax highlighting, type checking, and autocompletion, should function correctly within the .vue file.

What is actually happening?

After the @vue/language-server initializes, an error message appears directly within the src/App.vue editor. This indicates that the language server has failed to process the component correctly on the Windows platform. The same project and configuration work as expected on macOS.

Link to minimal reproduction

https://github.com/curlykay/issue-vls-vue2

Any additional comments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    good reproduction ✨This issue provides a good reproduction, we will be able to investigate it firstpending triage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions