Skip to content

通过defineOptions设置的组件名不能被识别 #5400

Open
@ifhover

Description

@ifhover

Vue - Official extension or vue-tsc version

3.0.0 alpha.9

VSCode version

1.100.3

Vue version

3.5.16

TypeScript version

5.8.3

System Info

package.json dependencies

{
  "dependencies": {
    "vue": "^3.5.13"
  },
  "devDependencies": {
    "@tsconfig/node22": "^22.0.1",
    "@types/node": "^22.14.0",
    "@vitejs/plugin-vue": "^5.2.3",
    "@vue/tsconfig": "^0.7.0",
    "npm-run-all2": "^7.0.2",
    "typescript": "~5.8.0",
    "vite": "^6.2.4",
    "vite-plugin-vue-devtools": "^7.7.2",
    "vue-tsc": "^2.2.8"
  }
}

Steps to reproduce

pnpm create vue创建一个新的vue项目, 创建components/index.vue:
Image
在App.vue输入Custom时不会识别到组件,但Index可以
Image

Image

What is expected?

应提示CustomName

What is actually happening?

没有找到对应的组件

Link to minimal reproduction

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions