Tencent / puerts

PUER(普洱) Typescript. Let's write your game in UE or Unity with TypeScript.
Other
5.08k stars 707 forks source link

[UE] tsc怎么转换单个ts到js? #1822

Closed meilaopo closed 2 months ago

meilaopo commented 2 months ago

detail | 详细描述

以demo为例,在vs code 打开项目文件夹, 在终端执行tsc TypeScript/QuickStart.ts 有报错 node_modules/@types/react-reconciler/index.d.ts:412:34 - error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.

手册页面没找到相关说明 https://puerts.github.io/en/docs/puerts/unreal/manual

chexiongsheng commented 2 months ago

这是typescript的内容,我不可能把整个typescript社区的文档搬过来。 有tsconfig.json,意味着这是一个ts工程。tsconfig.json就是这个工程配置,相当于vc的.proj文件,你应该编译它。