Thanks to visit codestin.com
Credit goes to github.com

Skip to content

使用 createVaporApp 后执行 vue-tsc --build 提示类型错误,vscode 中也提示类型错误 #5496

@YanChenBai

Description

@YanChenBai

Vue - Official extension or vue-tsc version

3.0.1

VSCode version

1.102.0

Vue version

3.6.0-alpha.1

TypeScript version

5.8.3

System Info

package.json dependencies

{
  "dependencies": {
    "pinia": "^3.0.3",
    "vue": "^3.6.0-alpha.1"
  },
  "devDependencies": {
    "@antfu/eslint-config": "^4.16.2",
    "@tsconfig/node22": "^22.0.2",
    "@types/jsdom": "^21.1.7",
    "@types/node": "^24.0.13",
    "@vitejs/plugin-vue": "^6.0.0",
    "@vitest/eslint-plugin": "^1.3.4",
    "@vue/eslint-config-typescript": "^14.6.0",
    "@vue/test-utils": "^2.4.6",
    "@vue/tsconfig": "^0.7.0",
    "eslint": "^9.31.0",
    "eslint-plugin-vue": "~10.3.0",
    "jiti": "^2.4.2",
    "jsdom": "^26.1.0",
    "npm-run-all2": "^8.0.4",
    "typescript": "~5.8.3",
    "vite": "^7.0.4",
    "vite-plugin-vue-devtools": "^7.7.7",
    "vitest": "^3.2.4",
    "vue-tsc": "^3.0.1"
  }
}

Steps to reproduce

在vscode中createVaporApp传入组件报错,或执行vue-tsc --build会提示类型错误

What is expected?

在vscode中不提示错误,执行vue-tsc --build不报错

What is actually happening?

Image Image

Link to minimal reproduction

https://github.com/YanChenBai/bchat-renderer

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions