Closed
Description
Vue version
3.4.3
Link to minimal reproduction
Steps to reproduce
- In
tsconfig.json
, set theverbatimModuleSyntax
option tofalse
, and use theComponent
type without explicitly specifying type in the import statement. - In
vite.config.ts
, declare the__VUE_PROD_DEVTOOLS__
flag as'false'
.
What is expected?
The build should work correctly regardless of whether the import type statement is used.
What is actually happening?

In the vite.config.ts
file, when the __VUE_PROD_DEVTOOLS__
flag is declared, a build error occurs if you use Vue's Component
type without explicitly specifying the type in the import statement.
System Info
Any additional comments?
No response