An error occurred when packaging the vite project

report error

insert image description here

Cause Analysis

It is because this vue-tsc package has type checked ts,

problem solved

Syntax detection when packaging is turned off
insert image description here

The build in the file package.json is "vue-tsc --noEmit && vite build --config ./config/vite.config.prod.ts",changed from "vite build --config ./config/vite.config.prod.ts"to solve the syntax detection in the packaging process

Guess you like

Origin blog.csdn.net/qq_53810245/article/details/129625904