When vue3 was packaged using vite, this error occurred: 'Form' only refers to a type, but is being used as a value here.

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

Supongo que te gusta

Origin blog.csdn.net/mrhaoxiaojun/article/details/124082875
Recomendado
Clasificación