[LayaAirIDE 2.0]构建报错,TypeScript error: node_modules/@types/node/base.d.ts' not found.

有人遇到这个问题么?构建直接报错,无法打包!
 
开始编译: Tue Jan 07 2020 15:34:09 GMT+0800 (CST)
--------------------------------------
[15:34:09] Working directory changed to /Applications/LayaAirIDE.app/Contents/Resources/app
[15:34:09] Using gulpfile ~/Git/WorkProject/StackBall/.laya/compile.js
[15:34:09] Starting 'compile'...

出错了:
TypeScript error: ../../../node_modules/@types/node/index.d.ts(58,22): Error TS6053: File '../../../node_modules/@types/node/base.d.ts' not found.




 

WX20200107-153428@2x.png


WX20200107-153349@2x.png

 
 

node 版本:
WX20200107-153702@2x.png

 
 
 
 
 
 
 
已邀请:

鹿

赞同来自:

查找发现在系统的/Users/user/node_modules/@types/node/ 目录下多了一个globals.d.ts 和 index.d.ts 和 base.d.ts , 这3个文件在同级目录ts.3.2/x下还有一份文件名一样的文件(内容不一样),把这三个文件手动删除掉,可以正常打包了。不过暂时不知道会不会影响其他的程序。

WX20200107-162752@2x.png

 

鹿

赞同来自:

要回复问题请先

商务合作
商务合作