-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Description
Vue version
3.4.3
Link to minimal reproduction
Steps to reproduce
- In
tsconfig.json, set theverbatimModuleSyntaxoption tofalse, and use theComponenttype 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