alex8088 / quick-start

An easy way to start a front-end project.
MIT License
248 stars 34 forks source link

tsc --noEmit无效 #2

Closed joyexpr closed 1 year ago

joyexpr commented 2 years ago

Describe the bug

yarn create @quick-start/electron,选择vue typescript,typescript版本为:4.8.3(4.7.4也试过)

ts文件(如main/index.ts)中随便写一句非法语句,如a = b,执行npm run typecheck,无法检出该错误

是否是tsconfig配置有些问题?我随便拷了一个服务端项目的tsconfig配置执行tsc可以检出错误

Used Scaffolding

create-electron

Used Package Manager

yarn

Validations

alex8088 commented 2 years ago

我看看

alex8088 commented 2 years ago

@joyexpr 谢谢你的反馈,确实有问题

可以将typecheck改为

tsc --noEmit -p tsconfig.node.json --composite false

后面脚手架还会加入vue-tsc对vue构建的渲染进程代码进行类型检查