[SOLVED] Optional Chaining causes code completion fail

Ah got it, not runtime errors but in the code editor. That is expected at the moment since the code editor fully supports only ES5 JS.

You can get partial ES6 support by adding the following directive in the first line of any script:

/*jshint esversion: 6 */

But this supports only basic ES6 syntax like const, let, arrow functions. Async/await isn’t supported.

Here you can find a workaround a user posted to improve on that:

2 Likes