ios-jsc
ios-jsc copied to clipboard
typescript 2.6.2 cannot make async work (only on ios)
From @AshleyCao on April 6, 2018 0:10
Hi, after reviewing the related questions, I am still unable to find solution to our issue.
As suggested, async function is compile-able in es5. In tsconfig file, if I target to "es5", async works. But other functions such as "slice" would not work.
When I target ts to "esnext" . everything performs as expected on Android system.
So, I just wonder if this issue is something to do with ios setting? Or, is there a good way to target to es6. Tried tslib plugin, no luck.
- CLI: 3.4.3
- Cross-platform modules: 3.4.1
- Runtime(s): 3.4.1
- Sidekick: 1.8.2
Copied from original issue: NativeScript/NativeScript#5632
@AshleyCao have you tried setting the target to es5 and the lib to esnext?