When developing vue3+ts, when using vite for packaging, many type errors like this occurred: 'Form' only refers to a type, but is being used as a value here.
However, there was no problem with packaging for the first few times. The current problem occurred after forgetting some operations. Later I found that upgrading the vue-tsc version to the latest version can package normally. Indeed, the version is relatively low.
yarn add vue-tsc@next