angular - 获取错误 @types/tapable/index"' 不是构造函数类型
问题描述
我的生产网站运行良好。但是在服务器上放置“npm install”命令然后尝试使用“npm run build:prod”命令进行构建。面临以下错误。
ERROR in [at-loader] node_modules/@types/tapable/index.d.ts:290:30
TS2314: Generic type 'HookMapInterceptor<T1, any, T2, T3>' requires 4 type argument(s).
ERROR in [at-loader] node_modules/@types/tapable/index.d.ts:293:38
TS2368: Type parameter name cannot be 'any'
ERROR in [at-loader] node_modules/@types/tapable/index.d.ts:293:48
TS2300: Duplicate identifier 'any'.
我试过这个命令“npm install @types/tapable@1.0.2”。但没有解决问题。请帮帮我。
解决方案
推荐阅读
- css - 在 React 中从一个图像源淡化到另一个图像源
- r - R 不为 plot() 函数分配颜色
- c++ - 用户输入出现的数字
- go - golang linux在exec的帮助下添加用户
- java - 可导航地图:BigDecimal 或 NextKey 上的 lowerKey() 方法?
- argoproj - 如何根据消息值触发不同的模板?
- r - rvest 包的 read_html 问题
- xcode - 全新 XCode 安装显示已撤销的证书
- amazon-web-services - Amazon S3 aws:删除超过 5 天的文件夹
- javascript - 如何将 Vue 3 组件挂载到父组件?