Fix es6 compile error not displayed issue