angular - 无法导出“缓冲区”。只能从模块中导出本地声明
问题描述
我想更改使用 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.
我该怎么做才能修复它?
解决方案
推荐阅读
- javascript - 尝试在 nodejs 中将 CSV 文件转换为 JSON 会出现语法错误,而只需要 csv 文件
- java - Hibernate 5 多租户和 H2:错误 org.hibernate.engine.jdbc.spi.SqlExceptionHelper - 找不到架构 MYSCHEMA
- xslt - 无法为 xsi:type 属性动态创建命名空间节点
- pandas - 如何过滤数据框中的日期
- php - 如何使用 CRON 作业在 Joomla DB 上运行此查询?
- maven - Sonar Maven 插件无法使用密码作为 Maven 参数连接到 Oracle DB
- ios - 使用未声明的类型“TrailViewController” - 尝试处理 iOS 应用程序中列表中的项目详细信息
- ubuntu-18.04 - 针对“focal.tar.gz.gpg”验证“focal.tar.gz”失败
- axapta - 控制具有相同字段值 AX 2012 的记录
- javascript - Node.js - 要求未定义