- Notifications
You must be signed in to change notification settings - Fork506
Closed
Description
It seems that on newly created Vue 3 projects simply runningnpm run build does not perform a typecheck, in fact the result is identical as running only the second part of the build script (vite build).
Steps to reproduce:
- Run
npm init vue@3.1.10 - Answer yes to all questions
- Create a TypeScript error in one of the project files. For example go to
TheWelcome.vueand at the end ofscripttag addconst a: number = "888"; - Run
npm run build("build": "vue-tsc --noEmit && vite build")
Expected result - build failure due to ts error
Current result - successful build
Can you please clarify if my interpretation thatvue-tsc --noEmit inbuild script is supposed to perform type check is wrong or if it was in fact meant to perform a typecheck?