运行 npm run compile
报错:
error TS2318: Cannot find global type ‘CallableFunction’.
error TS2318: Cannot find global type 'NewableFunction'.
tsc --listfiles
/zhxiaol/weixin/welfareHub/typings/lib.wa.es6.d.ts
/zhxiaol/weixin/welfareHub/typings/wx/lib.wx.app.d.ts
/zhxiaol/weixin/welfareHub/typings/wx/lib.wx.page.d.ts
/zhxiaol/weixin/welfareHub/typings/wx/lib.wx.api.d.ts
/zhxiaol/weixin/welfareHub/typings/wx/lib.wx.cloud.d.ts
/zhxiaol/weixin/welfareHub/typings/wx/index.d.ts
/zhxiaol/weixin/welfareHub/typings/index.d.ts
新建的项目也无法编译