Error: TS Error: Subsequent variable declarations must have the same type. Variable ‘beforeEach‘ mus
Error: TS Error: Subsequent variable declarations must have the same type. Variable ‘beforeEach’ must be of type ‘Lifecycle’, but here has type ‘HookFunction’. 错误解决方法
如果在TypeScript开发或者Midway.js开发中,在编译工程时出现以上错误,原因就是发生了变量的重复定义。可能是由于之前用npm同时安装了@types/jest和@ty
原创
2021-10-26 20:40:38 ·
1533 阅读 ·
0 评论