SyntaxError: The keyword 'yield' is reserved. Console Error in TypeScript class

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?

What seems to happen is that by including “await” but not declaring the parent function as “async” I was getting the error “SyntaxError: The keyword ‘yield’ is reserved (134:23)”, either way I think this message is incorrect since “yield” was not being used in the code.