I'm trying to target es6 with my typescript entities. The code fails at runtime. Couls you have a look at [this answer](https://stackoverflow.com/a/56870932/15186) on Stack Overflow and tell me what you think ? No error with es5 target.