Base solution for your next web application
Open Closed

Property '_d' does not exist on type 'Moment' #7042


User avatar
0
Rechnerinfo created

Hi Team, I am getting an error in AOT build with bsDatepicker control , when i am creating a form in route component. Property '_d' does not exist on type 'Moment'


1 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    Not related to ASP<span></span>.NET Zero.

    From valor-software/ngx-bootstrap#4826:

    Most proper way is to convert momentjs object toDate and set it as a value, moment date wrapper always have it ._d field so it will work faster than formatting to string.