Skip to content

[v3.3.0] Vue 2 compatibility workaround no longer works in VSCode (Cannot find @vue/language-server) #6057

@curlykay

Description

@curlykay

Vue - Official extension or vue-tsc version

3.3.0

VSCode version

1.120.0

Vue version

2.7.16

TypeScript version

5.9.3

System Info

System:
    OS: macOS 15.7.5
    CPU: (14) arm64 Apple M4 Pro
    Memory: 87.92 MB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 26.1.0 
    Yarn: 4.14.1 
    npm: 11.13.0
    pnpm: 11.1.3
    bun: 1.3.14
    Deno: 2.7.14 
  Browsers:
    Chrome: 148.0.7778.168
    Edge: 148.0.3967.70
    Firefox: 150.0.3
    Safari: 26.4

package.json dependencies

"dependencies": {
    "vue": "2.7.16",
    "vue-template-compiler": "2.7.16"
  },
  "devDependencies": {
    "@rsbuild/core": "^2.0.6",
    "@rsbuild/plugin-vue2": "^1.1.1",
    "@vue/eslint-config-typescript": "^14.7.0",
    "@vue/language-server": "~3.0.10",
    "eslint": "^9.39.4",
    "eslint-plugin-vue": "^9.33.0",
    "globals": "^17.6.0",
    "prettier": "^3.8.3",
    "typescript": "^5.9.3",
    "typescript-eslint": "^8.59.3"
  }

Steps to reproduce

  1. Clone the reproduction repository:
git clone https://github.com/curlykay/issue-volar-vue2-compatible
cd issue-volar-vue2-compatible
pnpm install
  1. Open the project in VSCode

  2. Install and enable Vue Official 3.3.0+

  3. Open src/App.vue

  4. Observe the VSCode status bar / notification

What is expected?

Vue language features should work correctly for the Vue 2.7 project using the documented compatibility workaround, without reporting missing @vue/language-server.

What is actually happening?

VSCode reports:

Cannot find @vue/language-server

Vue language features are unavailable.

The same reproduction works correctly with Vue Official 3.2.9.

Link to minimal reproduction

https://github.com/curlykay/issue-volar-vue2-compatible

Any additional comments?

This issue affects the official Vue 2.7 compatibility workaround documented here:

#5455 (comment)

After upgrading Vue Official from 3.2.9 to 3.3.0, the workaround no longer works and VSCode reports:

Cannot find @vue/language-server

Downgrading back to 3.2.9 fixes the issue immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good reproduction ✨This issue provides a good reproduction, we will be able to investigate it first❗ p4-important

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions