I’m trying Nakama, a great game server for realtime multiplayer, and most of their Javascript client example code includes the use of “await”. I know Cocos Creator is Typescript compatible, so I’m using the Nakama code inside a TypeScript .ts class created from the Cocos Creator itself.
The thing is, while editing my typescript class, and using “await” I get an error inside the editor’s console: "SyntaxError: The keyword ‘yield’ is reserved (134:23)"but I am not even using “yield” on my code. This is making me think there’s a bug in Cocos Creator involving .ts files?
Is anyone having the similar issues with Cocos Creator and TypeScript?