Skip to content

vue-tsc don't generate declaration types after the Build #12947

@Trandx

Description

@Trandx

Vue version

latest

Link to minimal reproduction

no link

Steps to reproduce

Hello all!

I don't know if everyone has the same problem like me.
After updating my vue project, when i run the command pnpm vue-tsc --declaration --emitDeclarationOnly but, no types declarations have been generated.
I have downloaded the latest lite vuejs project and run the same command, nothing in the dist folder.

This is my current tsconfig file:
{ "extends": "@vue/tsconfig/tsconfig.dom.json", "include": ["env.d.ts", "src//*", "src//.vue"], "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", "declarationDir": "./dist/types", "noEmit": false, "declaration": true, "outDir": "./dist", "paths": { "@/": ["./src/*"] } } }

What is expected?

no things

What is actually happening?

I want to build my vuejs package with ts declaration but, with this latest i have no thing like that in the dist folder. i have thought that, may be it's my configs then, i've try to build a lite vuejs project after add some tsconfig for declarations emissions, unfortunately i've the same result.

System Info

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions