[Support] 今天用云效打包到ECS时提示Property 'state' must be of type 'any', but here has type 'State' #3479
-
Describe the problem(描述问题)我在虚拟机Ubuntu 20.04.3 LTS中运行没有发现此问题。 上传到云效中打包时的提示: node_modules/@midwayjs/web/index.d.ts:34:5 - error TS2717: Subsequent property declarations must have the same type. Property 'state' must be of type 'any', but here has type 'State'. 我用vscode打开相应文件,state是标红的
=================================================================
我找回之前的已下载好的文件,发现state那一句是新加上去的,帮忙处理下,谢谢 Midway Versions(Midway 版本)
✓ @midwayjs/faas-typings(not installed)
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
全部报错的内容 [10:20:32] #19 28.94 node_modules/@midwayjs/web/index.d.ts:34:5 - error TS2717: Subsequent property declarations must have the same type. Property 'state' must be of type 'any', but here has type 'State'. |
Beta Was this translation helpful? Give feedback.
-
务必在 tsconfig.json 中开启 "skipLibCheck": true |
Beta Was this translation helpful? Give feedback.
务必在 tsconfig.json 中开启 "skipLibCheck": true