cos-nodejs-sdk-v5 icon indicating copy to clipboard operation
cos-nodejs-sdk-v5 copied to clipboard

使用pnpm安装出现类型报错

Open lanseria opened this issue 2 years ago • 2 comments

[下午7:01:59] Starting compilation in watch mode...

node_modules/.pnpm/[email protected]/node_modules/cos-nodejs-sdk-v5/index.d.ts:1857:12 - error TS2304: Cannot find name 'Body'.

1857     Body?: Body | string,
                ~~~~

[下午7:02:04] Found 1 error. Watching for file changes.

lanseria avatar Jan 16 '22 11:01 lanseria

重新用yarn安装一次 或者创建.npmrc 写入 auto-install-peers=true 再重新执行pnpm i

ghost avatar Jun 15 '22 11:06 ghost

2.11.11 版本遇到相同的错误

我搜索了 index.d.ts 确实没有定义 Body 类型,只有一个 UploadBody

退回 2.8,构建成功了

luoxzhg avatar Jun 30 '22 05:06 luoxzhg

fixed

livehigh avatar Aug 17 '23 10:08 livehigh