[LayaAirIDE 2.0]编译异常 Note that you need plugins to import files that are not JavaScript

在他人电脑运行没有问题,在自己的电脑编辑就报如下的错误,有大佬遇到吗?

[17:24:32] Working directory changed to D:\LayaAirIDE2.3.0\resources\app
[17:24:32] Using gulpfile ~\Desktop\MineKart(2)\.laya\compile.js
[17:24:32] Starting 'compile'...
[17:24:33] 'compile' errored after 668 ms
[17:24:33] Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)
at error (D:\LayaAirIDE2.3.0\resources\app\node_modules\rollup\dist\rollup.js:9402:30)
at Module.error (D:\LayaAirIDE2.3.0\resources\app\node_modules\rollup\dist\rollup.js:13340:9)
at tryParse (D:\LayaAirIDE2.3.0\resources\app\node_modules\rollup\dist\rollup.js:13255:16)
at Module.setSource (D:\LayaAirIDE2.3.0\resources\app\node_modules\rollup\dist\rollup.js:13566:33)
at Promise.resolve.catch.then.then.then (D:\LayaAirIDE2.3.0\resources\app\node_modules\rollup\dist\rollup.js:16352:20)
at <anonymous>
编译异常,请检查代码后重试...

企业微信截图_20200513173446.png

 
 
已邀请:

Laya_z

赞同来自: 初老青年

将.laya/compile.js下的语法检查打开,检查一下代码是否有错误
51b70c44fa846b01ac12285e7bea4e5.png

要回复问题请先

商务合作
商务合作