[LayaNative 2.0]ide 2.4 layaair2-cmd 编译报错

步骤,最新版2.4创建一个ts工程,执行编译命令,编译不通过,无任何改动,编辑器能够编译通过,命令行不行➜  GameTowertest node -v
v10.17.0
➜  GameTowertest npm -v
6.11.3
➜  GameTowertest gulp -v
[14:22:19] CLI version 3.9.1
➜  GameTowertest layaair2-cmd -v
1.4.6
➜  GameTowertest layaair2-cmd compile
[14:22:34]
Working directory changed to /usr/local/lib/node_modules/layaair2-cmd

[14:22:35]
Using gulpfile ~/Documents/GameTowertest/.laya/compile.js

[14:22:35] Starting 'compile'...

rpt2: config error TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'.

[14:22:35]
'compile' errored after 286 ms
[14:22:35] Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)
    at error (/usr/local/lib/node_modules/layaair2-cmd/node_modules/rollup/dist/rollup.js:5351:30)
    at Module.error (/usr/local/lib/node_modules/layaair2-cmd/node_modules/rollup/dist/rollup.js:9643:9)
    at tryParse (/usr/local/lib/node_modules/layaair2-cmd/node_modules/rollup/dist/rollup.js:9552:16)
    at Module.setSource (/usr/local/lib/node_modules/layaair2-cmd/node_modules/rollup/dist/rollup.js:9868:33)
    at Promise.resolve.catch.then.then.then (/usr/local/lib/node_modules/layaair2-cmd/node_modules/rollup/dist/rollup.js:12148:20)

exit:1
1573799186741.jpg
已邀请:
老的ts项目替换下.laya下的

要回复问题请先

商务合作
商务合作