Skip to content

Conversation

zhiyuanzmj
Copy link
Member

@zhiyuanzmj zhiyuanzmj commented Jun 3, 2025

Description

Issues #948 and #956: The Volar plugin does not work when only @vue-macros/nuxt is installed.

Since Volar plugin config of .nuxt/tsconfig.json is vue-macros/volar, @vue/language-tools does not read it's path correctly when vue-macros is not installed.

{
  "vueCompilerOptions": {
    "plugins": [
      "vue-macros/volar"
    ]
  }
}

So i expose a Volar plugin for package.json, and use @vue-macros/nuxt/volar instead vue-macros/volar to resolve it.

{
  "vueCompilerOptions": {
    "plugins": [
      "@vue-macros/nuxt/volar"
    ]
  }
}

Linked Issues

Additional context

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

vercel bot commented Jun 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
vue-macros ✅ Ready (Inspect) Visit Preview Jun 3, 2025 0:16am

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. enhancement New feature or request volar labels Jun 3, 2025
@zhiyuanzmj zhiyuanzmj requested a review from sxzz June 3, 2025 00:17
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 3, 2025
@zhiyuanzmj zhiyuanzmj merged commit b0dc81e into main Jun 3, 2025
11 checks passed
@zhiyuanzmj zhiyuanzmj deleted the nuxt-volar branch June 3, 2025 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files. volar
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants