Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我直接拉下来以后编译 'tslib' cannot be found 报错,请问是什么原因 #2

Open
liuyangboo opened this issue Oct 25, 2022 · 0 comments

Comments

@liuyangboo
Copy link

开始编译: Tue Oct 25 2022 21:55:18 GMT+0800 (中国标准时间)

[21:55:18] Working directory changed to C:\myspace\LayaAirIDE_beta\resources\app
[21:55:19] Using gulpfile G:\layawork\LayaMiniGame-master\LayaMiniGame-master.laya\compile.js
[21:55:19] Starting 'compile'...
{ Error: G:/layawork/LayaMiniGame-master/LayaMiniGame-master/src/Game/Manager/AudioManager.ts(9,1): semantic error TS2354: �[31mThis syntax requires an imported helper but module 'tslib' cannot be found.�[39m
at error (C:\myspace\LayaAirIDE_beta\resources\app\node_modules\rollup\dist\rollup.js:9402:30)
at Object.error (C:\myspace\LayaAirIDE_beta\resources\app\node_modules\rollup\dist\rollup.js:15621:24)
at Object.error (C:\myspace\LayaAirIDE_beta\resources\app\node_modules\rollup\dist\rollup.js:16065:38)
at RollupContext.error (C:\myspace\LayaAirIDE_beta\resources\app\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:17187:30)
at lodash_3 (C:\myspace\LayaAirIDE_beta\resources\app\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:24954:23)
at arrayEach (C:\myspace\LayaAirIDE_beta\resources\app\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:532:11)
at forEach (C:\myspace\LayaAirIDE_beta\resources\app\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:9360:14)
at printDiagnostics (C:\myspace\LayaAirIDE_beta\resources\app\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:24927:5)
at Object.transform (C:\myspace\LayaAirIDE_beta\resources\app\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:26760:17)
at Promise.resolve.then (C:\myspace\LayaAirIDE_beta\resources\app\node_modules\rollup\dist\rollup.js:15768:25)
id: 'G:/layawork/LayaMiniGame-master/LayaMiniGame-master/src/Game/Manager/AudioManager.ts',
hook: 'transform',
code: 'PLUGIN_ERROR',
plugin: 'rpt2' }
[21:55:22] Finished 'compile' after 3.11 s

编译结束,gulp编译耗时: 3.724s
编译结束,总耗时: 5.238s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant