Skip to content

JSDoc missing in template #5441

Open
Open
@baixiaoyu2997

Description

@baixiaoyu2997

Vue - Official extension or vue-tsc version

3.0.0-beta.2

VSCode version

1.101.1

Vue version

3.5.17

TypeScript version

5.8.3

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i5-12600KF
    Memory: 18.36 GB / 31.82 GB
  Binaries:
    Node: 22.16.0 - ~\AppData\Local\Volta\tools\image\node\22.16.0\node.EXE
    npm: 11.0.0 - ~\AppData\Local\Volta\tools\image\npm\11.0.0\bin\npm.CMD
    pnpm: 10.11.0 - C:\Program Files\Volta\pnpm.EXE
  Browsers:
    Edge: Chromium (131.0.2903.99)
    Internet Explorer: 11.0.26100.1882

package.json dependencies

{
  "dependencies": {
    "vue": "^3.5.13"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "^5.2.3",
    "@vue/tsconfig": "^0.7.0",
    "typescript": "~5.8.3",
    "vite": "^6.3.5",
    "vue-tsc": "^2.2.8"
  }
}

Steps to reproduce

import vue component in <script lang="ts">
and then check component jsdoc in template

What is expected?

show vue component jsdoc

What is actually happening?

no jsdoc, and I noticed that importing Vue components in <script lang="ts"> and <script setup lang="ts"> gives different hints?

Image

Image

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-fwwtdtsz?file=src%2FApp.vue

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions