LiJ*_*ing 12 typescript webpack vue.js
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。不知道我的配置有没有问题,或者第三方包有什么问题可以给我一些有用的建议吗谢谢
kya*_*ane 22
我有同样的问题。
@types/node 的版本是 13.1.0,于 2019 年 12 月 23 日星期一 16:40:55 GMT 发布
就我而言,当我使用以前的版本 12.12.22 时它可以工作
npm install --save-dev @types/node@12.12.22
| 归档时间: | 
 | 
| 查看次数: | 3326 次 | 
| 最近记录: |