You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
more please see: vitejs/vite#19088
there is an public gitee example at here
[email protected] build
vue-tsc -b && vite build
error TS6133: 'val1' is declared but its value is never read.
error TS6133: 'val2' is declared but its value is never read.
error TS6133: 'MyComp ' is declared but its value is never read.
Error: Process completed with exit code 2.
What is expected?
i hope vue-tsc can detected tsvariable used in pug(eg: div#xxx(:data-type="var1") {{ var2 }}) and css(eg: v-bind('xxx'))
What is actually happening?
more please see: vitejs/vite#19088
there is an public gitee example at here
VSCode, WebStorm and HBuildX will hint red line of the variable will never used npm run dev will success but npm run build (used tsc) will error
i must config ```
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
### Link to minimal reproduction
https://gitee.com/heke1228/vite-pug-bug.git
### Any additional comments?
_No response_
The text was updated successfully, but these errors were encountered:
Vue - Official extension or vue-tsc version
tsc-verison: 2.1.10
VSCode version
null
Vue version
3.5.13
TypeScript version
5.6.3
System Info
package.json dependencies
Steps to reproduce
more please see: vitejs/vite#19088
there is an public gitee example at here
What is expected?
i hope vue-tsc can detected tsvariable used in pug(eg: div#xxx(:data-type="var1") {{ var2 }}) and css(eg: v-bind('xxx'))
What is actually happening?
more please see: vitejs/vite#19088
there is an public gitee example at here
VSCode, WebStorm and HBuildX will hint red line of
the variable will never used
npm run dev
will success butnpm run build (used tsc)
will errori must config ```
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
The text was updated successfully, but these errors were encountered: