Blank screen on iOS after change to ES6


#1

Changing target from es5 to es6 in tsconfig.json makes the app go blank on OSX for iOS.

I run the following on OSX:
ionic start testionic2 --v2 --ts
ionic serve
=> this works fine, and the app is running in Safari

Changing target from es5 to es6 in tsconfig.json and running ionic serve again displays a blank app in Safari.
The same applies to running “ionic emulate ios”.

Questions:

  1. Should this work on OSX? It works on Windows.
  2. Is there a way to get it to work on OSX for iOS?

I need es6 since the project uses async/await.

Thanks,
Johan


#2

It’s not a surprise - even the latest iOS 9 supports only a bit over 50% of the ES6 features. Your best bet is to wait for TypeScript 2.0 which should support async/await also for ES5 target. I guess that it will be released in 2-3 months based on the progress.