After switching from target es5 to es2015 (es6), the datepicker is not working anymore when deploying with --prod flag. I also tried adding --aot
flag, but it didn't change anything. The outcome looks as follows:
Following Error is thrown:
Using NativeDateAdapter instead of MomentDateAdapter is no solution, as it's necessary that the datepicker is localized correctly.
Only reference i found is:
https://github.com/angular/material2/issues/10347
But as it turns out, there is still no solution.
I would appreciate any help on this!