【发布时间】:2020-04-15 21:40:21
【问题描述】:
ERROR in C:/phpStudy2018/PHPTutorial/WWW/Tms.Web/node_modules/@types/node/globals.d.ts(139,11):
139:11 Interface 'NodeRequire' cannot simultaneously extend types 'Require' and 'RequireFunction'.
Named property 'cache' of types 'Require' and 'RequireFunction' are not identical.
137 |
138 | // For backwards compability
> 139 | interface NodeRequire extends NodeJS.Require {}
| ^
140 | interface RequireResolve extends NodeJS.RequireResolve {}
141 | interface NodeModule extends NodeJS.Module {}
142 |
error in C:/phpStudy2018/PHPTutorial/WWW/Tms.Web/node_modules/@types/node/globals.d.ts
ERROR in C:/phpStudy2018/PHPTutorial/WWW/Tms.Web/node_modules/@types/node/globals.d.ts(139,11):
我的环境是 vue.js + typescript。不知道是我的配置有问题还是第三方包有问题 你能给我一些有用的建议吗 谢谢
【问题讨论】:
标签: typescript vue.js webpack