Skip to content

[3.0.0] Component custom properties error with vue-tsc #5464

Closed
@zcf0508

Description

@zcf0508

Vue - Official extension or vue-tsc version

3.0.0

VSCode version

latest

Vue version

3.5.4

TypeScript version

5.7.3

System Info

package.json dependencies

{ "name": "volar3-component-custom-properties-bug", "private": true, "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "vite build", "typecheck": "vue-tsc", "preview": "vite preview" }, "dependencies": { "v-viewer": "3.0.20", "vue": "3.5.4", "vue-router": "4.4.4" }, "devDependencies": { "@types/node": "^24.0.10", "@vitejs/plugin-vue": "^6.0.0", "typescript": "5.7.3", "vite": "^7.0.0", "vue-tsc": "^3.0.0" }, "pnpm": { "patchedDependencies": { "v-viewer@3.0.20": "patches/v-viewer@3.0.20.patch" } } }

Steps to reproduce

https://github.com/zcf0508/volar3-component-custom-properties-bug

Run pnpm run typecheck.

What is expected?

no error

What is actually happening?

Image

Link to minimal reproduction

https://github.com/zcf0508/volar3-component-custom-properties-bug

Any additional comments?

I think the reason is that the type declaration patch of v-viewer .

Metadata

Metadata

Assignees

No one assigned

    Labels

    good reproduction ✨This issue provides a good reproduction, we will be able to investigate it firstupstream: volar

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions