ERROR in C:/xxxx/node_modules/cos-js-sdk-v5/index.d.ts(1887,12):
1887:12 Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig.
1885 | /** Request 接口返回值 */
1886 | interface RequestResult extends GeneralResult {
> 1887 | Body?: Buffer,
| ^
1888 | }
1889 |
1890 | // getObjectUrl
Version: typescript 3.9.6
Node 版本
代码引用
错误日志
错误截图