首页 > 解决方案 > 无法导出“缓冲区”。只能从模块中导出本地声明

问题描述

我想更改使用 angular 开发的开源应用程序的样式,当我尝试使用它构建它时,ng build --watch出现以下错误: Error: node_modules/@types/node/buffer.d.ts:90:14 - error TS2661: Cannot export 'Buffer'. Only local declarations can be exported from a module. 我该怎么做才能修复它?

标签: angulartypescriptbuffer

解决方案


推荐阅读