[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>
编译异常,请检查代码后重试...
[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>
编译异常,请检查代码后重试...
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Laya_z
赞同来自: 初老青年